* Creates a dispatcher that schedules work through this scheduler. * * **When to use** * * Use when you need a standalone dispatcher from a scheduler instance, for * example in tests that enqueue tasks and then flush them deterministically. * * @since 4.0.0
()
| 186 | * @since 4.0.0 |
| 187 | */ |
| 188 | makeDispatcher() { |
| 189 | return new MixedSchedulerDispatcher(this.setImmediate) |
| 190 | } |
| 191 | } |
| 192 | |
| 193 | class MixedSchedulerDispatcher implements SchedulerDispatcher { |
nothing calls this directly
no outgoing calls
no test coverage detected