launchIn

abstract fun launchIn(scope: CoroutineScope): Job

Launches the actor.

The Actor will continue to run as long as any one of the invoked scopes is valid.

Note: Currently, This function must be called from the main(UI) thread. If you call it from a thread other than the main thread, the internal counter value will be out of sync.

Parameters

scope

The scope in which the actor will run