mirror of
https://github.com/apple/swift-nio
synced 2026-11-25 04:47:49 +00:00
Provide a mechanism to repeatedly schedule a task in the EventLoop Motivation: In some cases a certain task should run repeatedly, like polling an API or querying a database. For these scenarios a repeated scheduling mechanism is beneficial. Modifications: Added a method to EventLoop to schedule repeated tasks. Result: It is possible to schedule task with an initial delay and a fixed delay now. Furthermore, these task can be cancelled.