-
public class OneSignalDispatchersThe SDK's coroutine lanes. Pools are chosen once per process from the startup flags: bootstrap builds executors off the caller, lazy builds them on first use.
-
-
Field Summary
Fields Modifier and Type Field Description private final CoroutineDispatcherIOprivate final CoroutineDispatcherDefaultprivate final CoroutineDispatcherSerialIOpublic final static OneSignalDispatchersINSTANCE
-
Method Summary
Modifier and Type Method Description final JoblaunchOnIO(SuspendFunction0<Unit> block)final JoblaunchOnDefault(SuspendFunction0<Unit> block)final JoblaunchOnSerialIO(SuspendFunction0<Unit> block)Launches block on the single-thread serial IO dispatcher (FIFO across all callers). final JoblaunchOnIngress(SuspendFunction0<Unit> block)Launches short durable-ingress work on a lane isolated from general SDK I/O. final Unitprewarm(Context context)Notes context first, since the pools latch from the startup flags file, then warms every lane off the caller when it can. final CoroutineDispatchergetIO()final CoroutineDispatchergetDefault()final CoroutineDispatchergetSerialIO()-
-
Method Detail
-
launchOnIO
final Job launchOnIO(SuspendFunction0<Unit> block)
-
launchOnDefault
final Job launchOnDefault(SuspendFunction0<Unit> block)
-
launchOnSerialIO
final Job launchOnSerialIO(SuspendFunction0<Unit> block)
Launches block on the single-thread serial IO dispatcher (FIFO across all callers).
-
launchOnIngress
final Job launchOnIngress(SuspendFunction0<Unit> block)
Launches short durable-ingress work on a lane isolated from general SDK I/O.
-
prewarm
final Unit prewarm(Context context)
Notes context first, since the pools latch from the startup flags file, then warms every lane off the caller when it can. Bootstrap queues construction. Lazy construction runs on the caller, or blocks behind prewarm.
-
getIO
final CoroutineDispatcher getIO()
-
getDefault
final CoroutineDispatcher getDefault()
-
getSerialIO
final CoroutineDispatcher getSerialIO()
-
-
-
-