Package-level declarations
Suspend helpers that handle cancellation correctly.
Start here:
retryWithBackoff: run a call again after a failure, with a growing pause.
runCatchingCancellable:
runCatchingthat never swallows the cancellation of the caller.parallelMap: map a collection with many calls at the same time.
SingleFlight: callers that ask for the same key at the same time share one call.
suspendLazy: a lazy value with a suspending initializer.
Types
Makes callers that ask for the same key at the same time share one run of the work.
A lazy value whose initializer can suspend. Create one with suspendLazy.
Functions
Like runCatching, but safe in suspend code: it never swallows the cancellation of the caller.
The receiver form of runCatchingCancellable: block runs with this as its receiver.
Like lazy, but the initializer can suspend. Read the value with SuspendLazy.get.