| 708 | // Schedule the job-ref, looking up the current worker so woken |
| 709 | // futures tend to run on the thread that woke them. |
| 710 | Worker::with_current(|worker| scheduler.schedule(job_ref, worker)); |
| 711 | }; |
| 712 | |
| 713 | // Create a runnable for the future. |
| 714 | // |
| 715 | // SAFETY: `spawn_unchecked` has four obligations: |
| 716 | // |
| 717 | // * If `Self` is `!Send`, its `Runnable` must be used and dropped on |
| 718 | // the original thread. |
| 719 | // |
| 720 | // The second clause of the `Spawn<M>::spawn` safety contract requires |
| 721 | // the caller to confine `scheduler` to the original thread, so |