Skip to content

Module: async

The async module must be imported if you want to use or write async functions. It contains the basic data structures needed to create event loops and run coroutines. The async module only imports the threads module as its dependency and does not rely on any operating system implementation of event loops such as epoll etc. It is instead designed so that for specific applications such as networking, third party libraries can provide their own implementations e.g. for non-blocking IO.

Types:

  • ConcurrentQueue
  • Coroutine
  • CoroutineNoValue
  • Future
  • AsyncLoop