ExitModule
PackageAxial
Summary
| Name | Signature | Synopsis |
|---|---|---|
| map | Exit.map mapper exit | Transforms the success value of an exit outcome using the provided function. |
| bind | Exit.bind binder exit | Binds the success value of an exit outcome to a function that returns a new exit outcome. |
| mapError | Exit.mapError mapper exit | Transforms the error value of a failed exit outcome using the provided function. |
| mapBoth | Exit.mapBoth onSuccess onFailure exit | Transforms both success and failure outcomes of an exit using the provided functions. |
| fromResult | Exit.fromResult result | Creates an exit outcome from a standard F# Result. |
| toResult | Exit.toResult exit | Converts an exit outcome to a standard F# Result. |
Transforms the success value of an exit outcome using the provided function.
Parameters
| Name | Type | Description |
|---|---|---|
| mapper | 'v -> 'w | The function to transform the success value. |
| exit | Exit<'v, 'e> | The exit outcome to transform. |
Returns
Exit<'w, 'e>
Binds the success value of an exit outcome to a function that returns a new exit outcome.
Parameters
| Name | Type | Description |
|---|---|---|
| binder | 'v -> Exit<'w, 'e> | The function that takes a success value and returns a new exit outcome. |
| exit | Exit<'v, 'e> | The exit outcome to bind. |
Returns
Exit<'w, 'e>
Transforms the error value of a failed exit outcome using the provided function.
Parameters
| Name | Type | Description |
|---|---|---|
| mapper | 'e -> 'f | The function to transform the error value. |
| exit | Exit<'v, 'e> | The exit outcome to transform. |
Returns
Exit<'v, 'f>
Transforms both success and failure outcomes of an exit using the provided functions.
Parameters
| Name | Type | Description |
|---|---|---|
| onSuccess | 'v -> 'w | The function to transform the success value. |
| onFailure | Cause<'e> -> Cause<'f> | The function to transform the failure cause. |
| exit | Exit<'v, 'e> | The exit outcome to transform. |
Returns
Exit<'w, 'f>
Creates an exit outcome from a standard F#
Result.Parameters
| Name | Type | Description |
|---|---|---|
| result | Result<'v, 'e> | The result to convert. |
Returns
Exit<'v, 'e>

