package dune-rpc-lwt

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Client.StreamSource

Control for a polling loop

Sourcetype 'a t
Sourceval cancel : _ t -> unit Lwt.t

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

Sourceval next : 'a t -> 'a option Lwt.t

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.

OCaml

Innovation. Community. Security.