AwaitableCloseTracker
An optional capability of a Tracker: it can shut down and report how the shutdown went. The tracker Autograph returns has it; a view of that tracker that does not own it (such as the one AutographScope hands out) does not.
Call closeAndAwait (the Tracker extension) rather than this interface. It probes for the capability with is and returns CloseResult.isUnsupported, without calling Tracker.close, when it is absent — so code that holds a plain Tracker cannot shut down a tracker it does not own.
This is a separate interface, and not a member of Tracker, because Kotlin/Native exports every interface member to Swift as @required: a new Tracker member breaks every Swift conformer (ADR 0001 §2d, #283). Its member set is frozen for the major version, like any other interface a caller could implement. Only Autograph can really implement it: CloseResult has no public constructor, so another implementation can only forward to a tracker from Autograph.
Functions
Stops accepting work, waits up to timeoutMillis for work already accepted to be handed to the transport, and reports what happened. See CloseResult for exactly what each part of the result does and does not promise.