package lsp

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'a t

A future represent a promise that will eventually yield a value. It is used to represent the result of a fiber running in the background.

val wait : 'a t -> 'a t

Wait for the given future to yield a value.

val peek : 'a t -> 'a option t

Return Some x if t has already returned.

OCaml

Innovation. Community. Security.