Logo Orsak

Builder Module

The forever computation expression.

Functions and values

Function or value Description

forever

Full Usage: forever

Returns: NonReturningEffectBuilder

An effect CE that can be used to signal that the effect is not expected to complete successfully through normal means, but instead run forever. An example would be an effect running a while true do -> loop. It does not indicate that the effect cannot fail, and thus it can return in case of an error.

Returns: NonReturningEffectBuilder
Example

 let pollQueue () = forever {
     while true do
         let! message = Queue.receive ()
         do! handle message
 }
val pollQueue: unit -> 'a

Type something to start searching.