package current

  1. Overview
  2. Docs
Pipeline language for keeping things up-to-date

Install

dune-project
 Dependency

Authors

Maintainers

Sources

current-0.6.2.tbz
sha256=ed312cab4ce8d13b9547ee2f935a6954f1d5211de1c22d44d85baaeb9f5fca9d
sha512=c2981a2c7f05bd6f235662b74ee3a679cc395be3d2cca808fac3dc562d6307e8bfe05efff40f42fa4738443cc2fe13929bab9d815c43d741950e5e0e1e6da7a6

doc/current/Current/Primitive/index.html

Module Current.PrimitiveSource

An OCurrent pipeline is made up of primitive operations. A primitive is roughly the content of a single box in the diagram.

Warning: Primitive is the low-level API. You will almost always want to use Current_cache (for processing or publishing jobs) or Monitor (for inputs) instead.

Sourceval const : 'a -> 'a t

const x is a primitive that always evaluates to x and never needs to be updated.

Sourceval map_result : ('a Current_term.Output.t -> 'b Current_term.Output.t) -> 'a t -> 'b t

map_result fn t transforms the result of t with fn. The metadata remains the same. If fn raises an exception, this is converted to Error.