StmBuilderType

PackageAxial
Computation expression builder for STM transactions.

Specification

Kind
Type
Members
7
Examples
0
``.ctor``Signature
StmBuilder()
BindSignature
this.Bind
CombineSignature
this.Combine
DelaySignature
this.Delay
ReturnSignature
this.Return

Summary

NameSignatureSynopsis
``.ctor``StmBuilder()No description available.
Bindthis.BindBinds the result of an STM transaction to a function that returns another STM transaction.
Combinethis.CombineCombines two STM transactions, executing them in sequence.
Delaythis.DelayDelays the execution of a transaction until it is run.
Returnthis.ReturnWraps a value in an STM transaction.
ReturnFromthis.ReturnFromReturns the result of another STM transaction.
Zerothis.ZeroReturns a transaction that does nothing and produces unit.

``.ctor``

StmBuilder()
Member

Returns

StmBuilder

Bind

this.Bind
Member
Binds the result of an STM transaction to a function that returns another STM transaction.

Parameters

NameTypeDescription
stmSTM<'T>The first STM transaction.
f'T -> STM<'U>A function that takes the result of the first transaction and returns a second transaction.

Returns

STM<'U>

Combine

this.Combine
Member
Combines two STM transactions, executing them in sequence.

Parameters

NameTypeDescription
stm1STM<unit>The first transaction to execute.
stm2STM<'T>The second transaction to execute.

Returns

STM<'T>

Delay

this.Delay
Member
Delays the execution of a transaction until it is run.

Parameters

NameTypeDescription
funit -> STM<'T>A function that produces the transaction.

Returns

STM<'T>

Return

this.Return
Member
Wraps a value in an STM transaction.

Parameters

NameTypeDescription
value'TThe value to return.

Returns

STM<'T>

ReturnFrom

this.ReturnFrom
Member
Returns the result of another STM transaction.

Parameters

NameTypeDescription
stmSTM<'T>The STM transaction to return from.

Returns

STM<'T>

Zero

this.Zero
Member
Returns a transaction that does nothing and produces unit.

Returns

STM<unit>