AppModule
PackageAxial
App
Summary
| Name | Signature | Synopsis |
|---|---|---|
| Start applications | ||
| start | App.start environment application | Starts a root workflow and returns a handle that owns its lifetime. |
| startWith | App.startWith environment build | Builds services in a new root scope and returns them with a handle that keeps the scope alive. |
| startWithCancellation | App.startWithCancellation cancellationToken environment application | Starts a root workflow linked to an external cancellation token. |
| Run applications | ||
| run | App.run environment application | Runs a root workflow to completion using the caller's asynchronous cancellation token. |
| runWithCancellation | App.runWithCancellation cancellationToken environment application | Runs a root workflow to completion using an explicit host-owned cancellation token. |
Start applications
kind:membertask:start
Starts a root workflow and returns a handle that owns its lifetime.
Parameters
| Name | Type | Description |
|---|---|---|
| environment | 'env | The explicit environment supplied to the root workflow. |
| application | Flow<'env, 'error, 'value> | The root workflow to start. |
Returns
AppHandle<'error, 'value>
kind:membertask:start
kind:membertask:start
Starts a root workflow linked to an external cancellation token.
Parameters
| Name | Type | Description |
|---|---|---|
| cancellationToken | CancellationToken | A host-owned token that requests application stop when cancelled. |
| environment | 'env | The explicit environment supplied to the root workflow. |
| application | Flow<'env, 'error, 'value> | The root workflow to start. |
Returns
AppHandle<'error, 'value>
Run applications
kind:membertask:run
Runs a root workflow to completion using the caller's asynchronous cancellation token.
Parameters
| Name | Type | Description |
|---|---|---|
| environment | 'env | The explicit environment supplied to the root workflow. |
| application | Flow<'env, 'error, 'value> | The root workflow to run. |
Returns
Async<Exit<'value, 'error>>
kind:membertask:run
Runs a root workflow to completion using an explicit host-owned cancellation token.
Parameters
| Name | Type | Description |
|---|---|---|
| cancellationToken | CancellationToken | A host-owned token that requests application stop when cancelled. |
| environment | 'env | The explicit environment supplied to the root workflow. |
| application | Flow<'env, 'error, 'value> | The root workflow to run. |
Returns
Async<Exit<'value, 'error>>

