package dune-rpc

  1. Overview
  2. Docs

Control for a polling loop

type 'a t
val cancel : _ t -> unit fiber

cancel t notify the server that we are stopping our polling loop. It is an error to call next after cancel

val next : 'a t -> 'a option fiber

next t poll for the next value. It is an error to call next again until the previous next terminated. If next returns None, subsequent calls to next is forbidden.


Innovation. Community. Security.