mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
Fixes #3262 by adding the missing APIs. ### Motivation: As explained by the issue linked above, having a non-`Sendable`-requiring variant of the new `scheduleCallback` APIs on `NIOIsolatedEventLoop` can be useful since we're not always dealing with `Sendable` types. ### Modifications: This adds the required `scheduleCallback` APIs to `NIOIsolatedEventLoop` by wrapping the non-`Sendable` `NIOScheduleCallbackHandler` in a `NIOLoopBound`-based handler. ### Result: The two `scheduleCallback`s can be used on `NIOIsolatedEventLoop` too. --------- Co-authored-by: Fabian Fett <fabianfett@apple.com>