package brr

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

Module Message.PortSource

Message ports.

Sourcetype t

The type for MessagePort objects.

Sourceval as_target : t -> Brr.Ev.target

as_target p is p as an event target.

Sourceval start : t -> unit

start p starts p.

Sourceval close : t -> unit

close p closes p.

Sourceval post : ?opts:opts -> t -> 'a -> unit

post ~opts p v posts value v on port p with options opts (the target_origin option is meaningless in this case).