Schedulers
A scheduler is a serial execution queue to perform work or deliver results upon. Signals and signal producers can be ordered to deliver events on a specific scheduler. Signal producers can additionally be ordered to start their work on a specific scheduler.
Schedulers are similar to the Grand Central Dispatch (GCD) queues, but schedulers support cancellation via disposables and always execute serially. With the exception of ImmediateScheduler, schedulers do not offer synchronous execution. This helps avoid deadlocks and encourages the use of signal and signal producer operations instead of blocking work.
Schedulers are also somewhat similar to NSOperationQueue, but schedulers do not allow tasks to be reordered or depend on one ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access