Conclusion
This chapter covered the four different methods for delaying execution:
Sleeping Sleeping is done when you must wait for something to occur before you can proceed. |
Event Handlers Event handlers let you register one or more functions to be executed when an event occurs. |
Callouts Callouts let you perform asyn chronous code execution. Callouts are used to execute your functions at a specific time. |
Taskqueues Taskqueues also let you perform asynchronous code execution. Taskqueues are used for deferred work. |
Get FreeBSD Device Drivers now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.