Companion

object Companion

Functions

concat
Link copied to clipboard
fun concat(tokens: Iterable<CancellationToken>): CancellationToken
Combine provided CancellationToken instances into one.
invoke
Link copied to clipboard
operator fun invoke(onCancel: () -> Unit): CancellationToken
Create a new CancellationToken with a closure as the cancellation logic.