JanetDocsPlaygroundI'm feeling luckyGitHub sign in

ev/deadline



    cfunction
    src/core/ev.c on line 2980, column 1

    (ev/deadline sec &opt tocancel tocheck)

    Set a deadline for a fiber `tocheck`. If `tocheck` is not finished 
    after `sec` seconds, `tocancel` will be canceled as with 
    `ev/cancel`. If `tocancel` and `tocheck` are not given, they 
    default to `(fiber/root)` and `(fiber/current)` respectively. 
    Returns `tocancel`.


0 examplesSign in to add an example
Loading...