Axial.Console 0.17.0

Prefix Reserved
dotnet add package Axial.Console --version 0.17.0
                    
NuGet\Install-Package Axial.Console -Version 0.17.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Axial.Console" Version="0.17.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Axial.Console" Version="0.17.0" />
                    
Directory.Packages.props
<PackageReference Include="Axial.Console" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Axial.Console --version 0.17.0
                    
#r "nuget: Axial.Console, 0.17.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Axial.Console@0.17.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Axial.Console&version=0.17.0
                    
Install as a Cake Addin
#tool nuget:?package=Axial.Console&version=0.17.0
                    
Install as a Cake Tool

Axial

<picture> <source media="(prefers-color-scheme: dark)" srcset="docs/content/img/axial-readme-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="docs/content/img/axial-readme-light.svg"> <img alt="Axial" src="docs/content/img/axial-readme-light.svg" width="160"> </picture>

Write asynchronous F# workflows whose expected failures and required dependencies are visible in their types.

ci docs NuGet License

Axial is close to 1.0. Expect small refinements, not large API changes.

  • Works with the code you have. Async binds directly in flow { }. Task and Task<Result<_, _>> (FsToolkit's TaskResult) bind through ColdTask, which passes in the flow's cancellation token. If that code throws, the exception is a defect, not one of your errors. Add Axial to an existing Task application
  • Cancellation and time belong to the runtime. Interrupting a flow stops its child fibers and waits for their cleanup. Timeouts, retries and sleeps read the runtime clock, so a test controls time. Concurrency
  • Guardrails is optional. Core Axial needs no analyzer. Add Axial.Guardrails when the code settles, or when an agent is writing it. Guardrails

Your first flow

A handler usually needs services and can fail, but a Task signature shows neither fact. Flow<'env, 'error, 'value> makes both part of the contract.

open Axial

type CheckoutError =
    | OrderNotFound of orderId: int
    | PaymentDeclined of reason: string

type Receipt = { OrderId: int; Total: decimal; Reference: string }

type CheckoutEnv =
    { FindTotal: int -> ColdTask<Result<decimal, CheckoutError>>
      Charge: decimal -> ColdTask<Result<string, CheckoutError>> }

let checkout orderId : Flow<CheckoutEnv, CheckoutError, Receipt> =
    flow {
        let! findTotal = Flow.envWith _.FindTotal
        let! charge = Flow.envWith _.Charge
        let! total = findTotal orderId
        let! reference = charge total
        return { OrderId = orderId; Total = total; Reference = reference }
    }

The application supplies live functions. A test supplies a record of fakes. The workflow does not change.

Adding a timeout and a retry leaves the signature unchanged:

open System

let checkoutOrder orderId : Flow<CheckoutEnv, CheckoutError, Receipt> =
    checkout orderId
    |> Flow.retry (Schedule.recurs 2)
    |> Flow.timeout (TimeSpan.FromSeconds 5.0) (PaymentDeclined "checkout timed out")

Clock, random, GUID and logging come from the runtime, not from 'env. Flow.runTest env swaps in a manual clock, seeded random, sequential GUIDs and a recording log; time moves only when the test advances it. Override one for a single flow with Flow.withClock, Flow.withRandom, Flow.withGuid or Flow.withLogSink. See runtime services.

Install

dotnet add package Axial

Package family

See the package maturity table for each package's rating and application evidence. The package catalogue links the first-class libraries and the complete compatibility matrix.

Documentation and examples

Reified integration

Reified declares value, model, JSON, and HTTP contracts. Axial's optional server adapters execute Reified HTTP contracts as workflows; neither core depends on the other. Axial 0.12 requires Reified 0.12.1 or later, whose Fable schema builder supports typed schema construction and Config.load decoding on Fable.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Axial.Console:

Package Downloads
Axial.Process

[Incubating] Composable external processes for F# workflows, with pipelines, streaming, typed failures, cancellation and safe cleanup.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.17.0 0 11/27/2026
0.16.0 108 11/25/2026
0.15.0 202 11/19/2026
0.14.1 218 11/8/2026
0.14.0 197 11/8/2026
0.13.0 230 11/7/2026
0.12.0 201 11/5/2026
0.11.3 140 10/19/2026
0.11.2 140 10/19/2026
0.11.1 131 10/19/2026
0.11.0 146 10/19/2026
0.10.0 170 10/1/2026
0.9.3 374 9/14/2026
0.9.2 165 9/14/2026
0.9.1 304 9/11/2026
0.9.0 155 9/11/2026
0.8.0 151 9/11/2026
0.7.1 202 8/18/2026
0.7.0 181 8/17/2026