core / pragma.jobs / BackgroundManager /
BackgroundManager #
interface BackgroundManager
Class for managing background concurrent tasks.
Functions #
Name | Summary |
---|---|
Creates a new BackgroundManager that is a child of this BackgroundManager. | |
Creates a kotlinx.coroutines.Job that is a child of this BackgroundManager. | |
Runs the block of code in the background. Will not wait for results. | |
Runs the block of code in the background once for each element in the collection, passing in the element as a parameter to the block. | |
Runs the block of code in the background on kotlinx.coroutines.Dispatchers.IO. | |
Replaces the thread pool for this BackgroundManager with a new thread pool. | |
Runs the block of code on a new coroutine every time an element is received on channel. | |
Runs the functor periodically with a delay. | |
Runs the block of code on a single coroutine every time an element is received on channel. | |
Shuts down this BackgroundManager. kotlin.coroutines.cancellation.CancellationException will be thrown on all children or active blocks of this BackgroundManager. This also will stop functors executed by runForever. | |
Runs the block of code on the kotlin.coroutines.CoroutineContext owned by this BackgroundManager. |
Properties #
Name | Summary |
---|---|
Name for the BackgroundManager instance, helpful for debugging purposes. |