AsyncOperations

gears.async.AsyncOperations
See theAsyncOperations companion trait

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

inline def sleep(millis: Long)(using AsyncOperations, Async): Unit

Suspends the current Async context for at least millis milliseconds.

Suspends the current Async context for at least millis milliseconds.

Value parameters

millis

The duration to suspend, in milliseconds. Must be a positive integer.

Attributes

inline def sleep(duration: FiniteDuration)(using AsyncOperations, Async): Unit

Suspends the current Async context for duration.

Suspends the current Async context for duration.

Value parameters

duration

The duration to suspend. Must be positive.

Attributes