AsyncOperations

gears.async.AsyncOperations
See theAsyncOperations companion object

Defines fundamental operations that require the support of the scheduler. This is commonly provided alongside with the given implementation of Scheduler.

Attributes

See also

Scheduler for the definition of the scheduler itself.

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

def `yield`()(using async: Async): Unit

Yields the current Async context, possibly allowing other computations to run.

Yields the current Async context, possibly allowing other computations to run.

Attributes

def sleep(millis: Long)(using async: Async): Unit

Suspends the current Async context for at least millis milliseconds.

Suspends the current Async context for at least millis milliseconds.

Attributes