Async backend configuration module.
This module provides the async backend configuration and exports the appropriate async framework (asyncdispatch or chronos) based on compile-time flags.
Types
CancelledError = object of CatchableError
- Placeholder so cross-backend except CancelledError clauses compile under asyncdispatch. asyncdispatch's primitives never raise this type, so such clauses are effectively no-ops.
Consts
asyncBackend {.strdefine.} = "none"
hasAsyncDispatch = true
hasAsyncSupport = true
hasChronos = false
Templates
template registerFD(fd: AsyncFD): untyped
template sleepMs(ms: int): untyped
template unregisterFD(fd: AsyncFD): untyped