InScopeRunner

ox.InScopeRunner
class InScopeRunner(runInScope: ActorRef[RunInScope])

Attributes

See also

inScopeRunner

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def async(f: Ox ?=> Unit): Unit

Runs the given function asynchronously, in the scope of the Ox concurrency scope in which this runner was created.

Runs the given function asynchronously, in the scope of the Ox concurrency scope in which this runner was created.

f should not block and return promptly, not to obstruct execution of other scheduled functions. Typically, it should start a background fork. Any exceptions thrown by f will be cause the entire scope to end.

Attributes