Idris2Doc : IO.Async.Loop.Epoll

IO.Async.Loop.Epoll

(source)

Reexports

importpublic Data.Nat
importpublic IO.Async
importpublic IO.Async.Loop
importpublic IO.Async.Loop.PollH
importpublic IO.Async.Loop.Posix
importpublic IO.Async.Loop.SignalH
importpublic IO.Async.Loop.TimerH

Definitions

epollPoller : IO1Poller
  Initialize the state of a Linux epoll poller.

Totality: total
Visibility: export
epollApp : {default [SIGINT] sigs : ListSignal} ->HasSIGINTsigs=>AsyncPoll [] () ->IO ()
  Simplified version of `app`.

We use environment variable `IDRIS2_ASYNC_THREADS` to determine the
number of threads to use (default: 2) and cancel the running program
on receiving `SIGINT`.

By default, only `SIGINT` is masked. To handle other signals
within your program, give `{sigs = [...]}` as the first
argument. One of the signals must be SIGINT, which is enforced by
the `Has SIGINT sigs` constraint.

Visibility: export