Package-level declarations
The platform primitives: each one gives common code something that only some targets have.
Start here:
ioDispatcher: the dispatcher for blocking calls, on every target.asyncWithProgress: anasyncthat also publishes its progress.WeakRef: a weak reference from common code.Platform.current: the OS name, version and device model.
Types
The kind of platform the code runs on, for when branches in common code.
A running operation that you can await, plus its live progress.
The receiver of an asyncWithProgress block: a CoroutineScope that can report progress and split the bar into slices.
Properties
Functions
Starts a coroutine like async, and also publishes its progress as a StateFlow.
Sets the dispatcher that ioDispatcher returns on JS and Wasm.
Joins a Deferred and a progress flow that you already have into one ProgressFuture.