Picos_lwt.SystemSignature for a module that Picos_lwt.run requires for interoperating with the system that Lwt runs on.
sleep seconds returns a cancelable promise that resolves after the given number of seconds.
val trigger : unit -> triggertrigger () returns a new thread-safe, single use signaling mechanism.
â ī¸ This may only be called on the main thread on which Lwt runs.
val signal : trigger -> unitsignal trigger resolves the promise that await trigger returns.
âšī¸ It must be safe to call signal from any thread or domain. As a special case this need not be thread-safe in case the system only allows a single thread.
val await : trigger -> unit Lwt.tawait trigger returns a promise thet resolves, on the main thread, after signal trigger has been called.
â ī¸ This may only be called on the main thread on which Lwt runs.