Docs
Packages
GitHub
Axial
Axial
Axial.Process
Axial.HttpClient
Axial.FileSystem
Axial.Console
Axial.Configuration
Axial.WebSocket
Axial.Hosting
Axial.ElmishFlows
Axial.Telemetry
Axial.Guardrails
Packages
0.13.0
0.16.0
0.15.0
0.14.1
0.14.0
0.13.0
0.12.0
0.11.3
0.11.2
0.11.1
0.11.0
0.10.0
0.9.3
0.9.2
0.9.1
0.9.0
0.8.0
0.7.1
0.7.0
light
dark
Axial
AbortSignal
Type
Package
Axial.Hosting.Browser
A structural binding for the browser and JavaScript
AbortSignal
contract.
Axial
Filter
Overview
Home
API Reference
Docs
Getting Started
Getting Started
Why Flow?
Installation
Add Axial to an existing Task application
Your First Application
How It Compares
How It Compares
FsToolkit.ErrorHandling Comparison
Task vs Flow: seven scenarios
Effect-TS Comparison
The Flow Type
The Flow Type
Reading the Type
Creating Flows
Running Flows
The Flow CE
Combining Flows
Async and Task interop
Troubleshooting Types
Resources
Error Handling
Error Handling
Bind
Policy and verification
Defects and Exceptions
Recovery and compound causes
Dependencies
Dependencies
The Environment
Choosing an Approach
Service Contracts
Providing the Environment
Dependency Tutorials
Dependency Tutorials
Tutorial: Explicit Dependencies First
Tutorial: App Record
Platform Services
Platform Services
Platform Services
Platform Services
Clock
Logging
Randomness and GUIDs
Tutorial: Composing Built-in Services
Layers
Layers
Composing Layers
Tutorial: Layers
Concurrency and State
Concurrency and State
Fibers
Supervision and Fiber Observability
Ref (Atomic References)
Deferred and Semaphore
STM (Software Transactional Memory)
Queue
Hub
SubscriptionRef
Cache and Memoize
Torture Tests
Torture Tests
Pipeline
Queues
Hubs
Semaphores
Deferreds
Refs
STM
Fibers
Caches
Schedules
Parallel
Errors
Scopes
Layers
Streams
Interop
Where Work Runs
Guarantees
Scheduling and Retries
Scheduling and Retries
Combining schedules
Scopes
Scopes
Streams
Streams
Getting Started
Constructing Streams
Transforming Values
Batching and Parallelism
Composing Streams
Consuming Streams
Platform Boundary
Time and Latest Value
Resources and Results
Crawler recipe
Observability
Observability
Platforms and Hosting
Platforms and Hosting
Application Lifecycle
Tutorial: Runtime Operations
Supplying Platform Services
Testing
Testing
Test fakes
Runnable Examples
Advanced
Advanced
Providing Services from a Package
Tutorial: Creating Reusable Services
Notes
Notes
Packages and platforms
Package maturity
API Reference
Axial
App
Start applications
start
startWith
startWithCancellation
Run applications
run
runWithCancellation
Bind
Operations
toFlow
error
mapError
Builders
Operations
flow
layer
Cache
Create caches
make
makeBounded
makeBoundedWithExpiry
makeRec
Access values
get
count
Invalidate values
invalidate
invalidateAll
Cause
Operations
map
thenCause
both
traced
untraced
failures
defects
isInterrupted
prettyPrint
Clock
Operations
service
now
utcDateTime
unixTimeSeconds
unixTimeMilliseconds
elapsed
timed
live
fromValue
fromTimeProvider
toTimeProvider
ColdTask
Operations
create
fromTaskFactory
awaitStartedTask
fromValueTaskFactory
fromValueTaskFactoryWithoutCancellation
awaitStartedValueTask
run
Culture
Operations
invariant
ofName
name
system
setProcessDefault
Deferred
Operations
make
await
completeNow
succeedNow
failNow
dieNow
interruptNow
complete
succeed
fail
die
interrupt
fromTask
toTask
Dequeue
Operations
take
poll
takeUpTo
takeBetween
takeAll
size
stats
capacity
shutdown
isShutdown
awaitShutdown
Exit
Operations
map
bind
mapError
mapBoth
fromResult
toResult
Fiber
Inspect fibers
dump
poll
Await results
join
Interrupt fibers
requestInterrupt
interrupt
Operations
awaitExit
FiberDump
Operations
ofMetadata
renderAt
renderTreeAt
FiberLocal
Operations
make
named
current
get
locally
FiberObserver
Operations
none
compose
FiberSlot
Operations
make
makeKeyed
interrupt
interruptAll
count
Flow
Create
ofExit
ok
succeed
error
fail
die
fromResult
verify
fromOption
fromValueOption
never
delay
Transform
map
ignore
bind
(>>=)
tap
tapError
mapBoth
Combine and sequence
zip
map2
apply
map3
(<!>)
(<*>)
traverse
traversePar
traverseParUsing
forEachPar
forEachParUsing
sequence
Errors and recovery
catchCancellation
orElseFlow
mapError
widenError
tracedError
foldCause
catch
orElseWith
recover
fold
orElse
Operations
fromColdTask
fromColdTaskResult
withClock
withRandom
withGuid
withLogSink
mapLogSink
withTelemetry
Run concurrently
runOn
supervise
fork
forkNamed
forkGraceful
forkDetached
disconnect
forkResource
memoize
forkReplacing
forkReplacingKey
zipPar
sequencePar
race
sequenceParWith
Manage resources
scopeDisposable
scopeAsyncDisposable
scopeResource
scopeAcquireRelease
scopeFinalizer
scoped
onExit
ensuring
onInterrupt
Environment and time
withFiberObserver
addFiberObserver
withFiberRegistry
withAnnotationSink
addAnnotationSink
annotate
withTraceId
cancellationToken
ensureNotCanceled
sleep
scope
annotations
traceId
fiberId
timeout
timeoutToOk
timeoutToError
timeoutWith
retry
repeat
env
envWith
localEnv
Run and interop
fromAsync
fromAsyncResult
attemptAsync
fromBlocking
fromBlockingResult
attemptBlocking
fromTask
fromTaskResult
attemptTask
fromValueTask
fromValueTaskResult
attemptValueTask
awaitStartedTask
awaitStartedTaskResult
attemptStartedTask
awaitStartedValueTask
awaitStartedValueTaskResult
attemptStartedValueTask
toAsync
startTask
run
FlowStream
Create streams
unfoldFlow
fromSchedule
fromSeq
empty
singleton
fromFlow
repeatFlow
Connect sources
fromDequeue
fromHub
fromCallbackWith
fromCallback
ofAsyncEnumerable
Transform values
localEnv
map
mapError
filter
choose
tapFlow
mapFlow
mapFlowPar
mapFlowParUsing
indexed
scan
distinctUntilChangedBy
collect
Select values
chunkBySize
take
skip
takeWhile
skipWhile
Combine streams
mergePar
switchMapFlow
append
zip
Buffer and pace
buffer
groupedWithin
debounce
throttle
reissueOnWake
Manage resources
using
Run streams
runIntoQueue
runIntoHub
runForEach
runFold
runCollect
runDrain
runForEachFlow
runTryHead
runTryLast
runCount
Format
Operations
number
currency
date
time
Guid
Operations
service
newGuid
live
fromValue
sequence
Hub
Create hubs
make
makeScoped
Publish values
publish
publishAll
tryPublish
tryPublishNow
Subscribe
subscribe
subscriberCount
Manage lifecycle
shutdown
isShutdown
awaitShutdown
Layer
Create layers
fromFlow
succeed
envWith
Manage resources
addFinalizer
acquireRelease
pool
Transform layers
map
mapError
widenError
Combine layers
bind
zip
zipPar
merge
map2
apply
map3
Provide environments
provide
Log
Operations
log
trace
debug
info
warning
error
critical
logException
errorExn
criticalExn
live
memory
LogSink
Operations
none
fromFunction
console
tee
minLevel
filter
map
Never
Operations
absurd
Parallelism
Operations
bounded
ofProcessors
runOn
cpu
io
blocking
adaptive
Policy
Operations
lift
withError
context
pass
compose
optional
PublishResult
Operations
empty
add
Queue
Create queues
make
makeScoped
bounded
dropping
sliding
unbounded
Offer values
offer
tryOffer
offerAll
Use from callbacks
droppingNow
shutdownNow
Random
Operations
service
next
nextMax
nextInt
nextDouble
nextBytes
bytes
live
seeded
fromValue
fromFixed
fromSequence
Resource
Create resources
create
Create finalizers
finalizer
Retry
Operations
defaults
schedule
RunOn
Operations
adaptive
adaptiveWith
Schedule
Create schedules
recurs
spaced
exponential
fixedRate
Adjust timing
jitteredWith
upTo
resetAfter
Combine schedules
union
intersect
andThen
Filter inputs
whileInput
untilInput
recursAtMost
Transform outputs
map
elapsed
whileOutput
untilOutput
Semaphore
Operations
make
withPermit
SemaphoreSlim
Operations
acquire
release
withPermit
TestClock
Operations
advance
advanceAll
sleepers
TestPlatformExtensions
Flow
Operations
runTestWith
runTest
TimeZone
Operations
utc
ofId
ofTimeZoneInfo
toTimeZoneInfo
id
local
toLocal
State
Ref
Create refs
make
Read and write
get
set
getAndSet
Update atomically
update
modify
getAndUpdate
updateAndGet
STM
Control transactions
retry
orElse
Run transactions
atomically
StmBuilders
Operations
stm
SubscriptionRef
Operations
make
get
set
update
modify
changes
TPromise
Operations
make
succeed
fail
await
poll
TQueue
Operations
make
unbounded
bounded
offer
take
size
isEmpty
isFull
TRef
Create refs
make
Read and write
get
set
getAndSet
Update atomically
update
modify
getAndUpdate
updateAndGet
TSemaphore
Operations
make
acquire
release
available
StmBuilder
Operations
``.ctor``
Bind
Combine
Delay
Return
ReturnFrom
Zero
Telemetry
AttributeKey
Operations
string
boolean
int64
float
strings
booleans
integers
floats
Context
Operations
attribute
empty
ofAttributes
add
addMany
tryFind
toSeq
endUserId
addEndUserId
withContext
withAttribute
withAttributes
withEndUserId
current
withSink
addSink
Keys
Operations
endUserId
Attribute
Representation
Key
AttributeValue
Name
Value
AttributeValue
Union cases
IsFloatValue
IsBooleanValue
IsIntegerValues
IsIntegerValue
IsStringValue
IsBooleanValues
IsStringValues
IsFloatValues
StringValue
BooleanValue
IntegerValue
FloatValue
StringValues
BooleanValues
IntegerValues
FloatValues
TelemetryContext
AdaptiveRunOnOptions
Representation
Threshold
Samples
AdaptiveRunOnState
AppHandle<'error, 'value>
Operations
Stop
StopAndWait
Status
Completion
AppStatus
Union cases
IsRunning
IsCompleted
IsStopping
Running
Stopping
Completed
Backoff
Union cases
IsNoDelay
IsExponential
IsFixed
NoDelay
Fixed
Exponential
CallbackOverflow<'error>
Union cases
IsDropping
IsFail
Dropping
Fail
Emit<'error, 'value>
Operations
End
Fail
Value
EnvFlow<'env, 'value>
ExnEnvFlow<'env, 'value>
ExnFlow<'value>
FiberId
Union cases
Value
FiberId
FiberMetadata
Representation
Id
Name
ParentId
Annotations
StartedAt
StartedTick
SettledAt
SettledTick
Status
FiberRegistry
Operations
``.ctor``
``.ctor``
DumpAt
Interrupt
InterruptByName
Settled
Snapshot
Stats
UnobservedDefects
StartedCount
Observer
HistoryCapacity
LiveFiberCount
FiberStats
Representation
Name
Count
Failed
Interrupted
TotalDuration
MaxDuration
FiberStatus
Union cases
IsSucceeded
IsRunning
IsFailed
IsInterrupted
Running
Succeeded
Failed
Interrupted
FlowBuilder
Operations
``.ctor``
Bind
Combine
Delay
For
Return
ReturnFrom
Run
Source
TryFinally
TryWith
Using
While
Zero
FlowSemaphore
HubTryPublishResult
Union cases
IsPublished
IsShutdown
IsBusy
IsFull
Published
Busy
Full
Shutdown
IClock
Operations
Elapsed
Sleep
UtcNow
IGuid
Operations
NewGuid
ILogSink
Operations
IsEnabled
Write
IRandom
Operations
Next
NextBytes
NextDouble
NextInt
NextMax
ITelemetry
Operations
Annotate
Attribute
KeyedFiberSlot<'key, 'error, 'value>
LogEntry
Representation
Level
Message
Error
Annotations
Locals
LogLevel
Union cases
IsError
IsTrace
IsCritical
IsWarning
IsDebug
IsInformation
Trace
Debug
Information
Warning
Error
Critical
ManualClock
Operations
``.ctor``
AdvanceBy
AdvanceToNextDeadline
LastDeadline
NextDeadline
Sleepers
Pool<'resource>
Operations
Next
Count
Instances
QueueStats
Representation
Size
Capacity
Accepted
Dropped
Evicted
WaitingTakers
WaitingOfferers
IsShutdown
QueueStrategy
Union cases
IsDropping
IsUnbounded
IsSliding
IsBackPressure
BackPressure
Dropping
Sliding
Unbounded
QueueTryOfferResult
Union cases
IsShutdown
IsDropped
IsAccepted
IsEvicted
IsFull
Accepted
Full
Dropped
Evicted
Shutdown
Scope
Create scopes
``.ctor``
Register cleanup
AddAsyncDisposable
AddDisposable
AddFinalizer
Manage children
AddChild
Close scopes
Close
ServiceProvider
Operations
get
SettledFiber
Representation
Duration
Fiber
Failure
StreamStep<'value, 'error>
Union cases
IsDone
IsNext
Done
Next
TestLog
Operations
``.ctor``
Clear
Entries
TestPlatform
Operations
Reads
Culture
TimeZone
Random
Clock
Log
Guid
Trace
create
UnobservedDefect
Representation
Fiber
Defect
UnrecoveredFailureException
Operations
``.ctor``
Value
Axial.Configuration
Config
Operations
load
loadData
parse
section
ofData
required
optional
tryFind
processArg
watch
ConfigError
Operations
describe
describeWithSources
ConfigSource
Operations
environment
environmentOf
commandLine
jsonFile
optionalJsonFile
json
queryString
ofData
ConfigWatch<'env, 'model>
Representation
Current
Errors
IConfig
Operations
Sources
Data
IHasConfig
Operations
Config
Axial.ElmishFlows
Cmd
OfFlow
Dispatch results
either
perform
attempt
Start commands
start
Latest
Dispatch latest results
either
perform
attempt
Cancel commands
cancel
OfFlowStream
Operations
latest
ElmishRuntime
Operations
start
startLayer
startService
test
Inbox
Operations
create
post
offer
dropped
stream
Sub
OfFlowStream
Subscribe to streams
subscribe
TestRuntime
Operations
drain
dispatched
defects
settle
run
subscribe
CommandDefect
Representation
Name
Error
Rendered
ElmishRuntimeOptions
Representation
Post
OnDefect
HistoryCapacity
Clock
LogSink
ServiceStartError
Union cases
IsRuntimeStopping
IsDuplicateName
DuplicateName
RuntimeStopping
Axial.Console
Console
Operations
service
input
output
error
inputEncoding
setInputEncoding
outputEncoding
setOutputEncoding
isInputRedirected
isOutputRedirected
isErrorRedirected
keyAvailable
read
readLine
readKey
write
writeLine
writeError
writeErrorLine
openStandardInput
openStandardOutput
openStandardError
clear
beep
resetColor
foregroundColor
setForegroundColor
backgroundColor
setBackgroundColor
cursorPosition
setCursorPosition
cursorVisible
setCursorVisible
title
setTitle
treatControlCAsInput
setTreatControlCAsInput
live
test
IConsole
Operations
Beep
Clear
OpenStandardError
OpenStandardInput
OpenStandardOutput
Read
ReadKey
ReadLine
ResetColor
SetCursorPosition
Write
WriteError
WriteErrorLine
WriteLine
IsInputRedirected
KeyAvailable
CursorTop
InputEncoding
Error
BackgroundColor
In
IsErrorRedirected
Out
ForegroundColor
OutputEncoding
TreatControlCAsInput
CursorLeft
Title
IsOutputRedirected
CursorVisible
IHasConsole
Operations
Console
TestConsole
Operations
``.ctor``
ClearOutput
SetInput
ErrorText
OutText
Axial.FileSystem
AppendLog
Operations
openLog
append
readAll
FileSystem
Operations
service
readAllText
readAllTextWithEncoding
readAllTextAsync
readAllLines
readAllLinesWithEncoding
readAllLinesAsync
readAllBytes
readAllBytesAsync
writeAllText
writeAllTextWithEncoding
writeAllTextAsync
writeAllLines
writeAllLinesWithEncoding
writeAllLinesAsync
writeAllBytes
writeAllBytesAsync
appendAllText
appendAllTextWithEncoding
appendAllTextAsync
appendAllLines
appendAllLinesWithEncoding
fileExists
exists
deleteFile
copyFile
moveFile
createFileSymbolicLink
createDirectorySymbolicLink
getSymbolicLinkTarget
resolveSymbolicLinkTarget
openFile
openFileWithAccess
openFileWithShare
openRead
openText
openWrite
createFile
createText
appendText
getFileLength
getFileAttributes
setFileAttributes
getFileCreationTime
getFileCreationTimeUtc
setFileCreationTime
setFileCreationTimeUtc
getFileLastAccessTime
getFileLastAccessTimeUtc
setFileLastAccessTime
setFileLastAccessTimeUtc
getFileLastWriteTime
getFileLastWriteTimeUtc
setFileLastWriteTime
setFileLastWriteTimeUtc
directoryExists
createDirectory
deleteDirectory
moveDirectory
enumerateFiles
getFiles
enumerateDirectories
getDirectories
enumerateFileSystemEntries
enumerateFileSystemInfos
getFileSystemEntries
getLogicalDrives
getDirectoryRoot
getParent
getCurrentDirectory
setCurrentDirectory
getDirectoryCreationTime
getDirectoryCreationTimeUtc
setDirectoryCreationTime
setDirectoryCreationTimeUtc
getDirectoryLastAccessTime
getDirectoryLastAccessTimeUtc
setDirectoryLastAccessTime
setDirectoryLastAccessTimeUtc
getDirectoryLastWriteTime
getDirectoryLastWriteTimeUtc
setDirectoryLastWriteTime
setDirectoryLastWriteTimeUtc
combine
changeExtension
getDirectoryName
getInvalidFileNameChars
getInvalidPathChars
getExtension
getFileName
getFileNameWithoutExtension
getFullPath
getPathRoot
getRelativePath
getTempPath
getTempFileName
getRandomFileName
hasExtension
endsInDirectorySeparator
trimEndingDirectorySeparator
isPathFullyQualified
isPathRooted
live
test
FileSystemError
Operations
isIoFailure
fromException
describe
Files
Operations
writeAtomic
cleanupStaleTemps
writeAllTextAtomic
writeAllTextAtomicWithEncoding
watch
walk
reader
lines
FileSystemChange
Representation
Kind
Path
OldPath
FileSystemChangeKind
Union cases
IsCreated
IsChanged
IsDeleted
IsRenamed
Created
Changed
Deleted
Renamed
FileSystemEntry
Representation
Name
FullPath
Kind
Size
LastWriteTimeUtc
FileSystemEntryKind
Union cases
IsFile
IsDirectory
File
Directory
IFileSystem
Operations
AppendAllLines
AppendAllLines
AppendAllText
AppendAllText
AppendAllTextAsync
AppendText
ChangeExtension
Combine
CopyFile
CreateDirectory
CreateDirectorySymbolicLink
CreateFile
CreateFileSymbolicLink
CreateText
DeleteDirectory
DeleteFile
DirectoryExists
EndsInDirectorySeparator
EnumerateDirectories
EnumerateFileSystemEntries
EnumerateFileSystemInfos
EnumerateFiles
FileExists
GetCurrentDirectory
GetDirectories
GetDirectoryCreationTime
GetDirectoryCreationTimeUtc
GetDirectoryLastAccessTime
GetDirectoryLastAccessTimeUtc
GetDirectoryLastWriteTime
GetDirectoryLastWriteTimeUtc
GetDirectoryName
GetDirectoryRoot
GetExtension
GetFileAttributes
GetFileCreationTime
GetFileCreationTimeUtc
GetFileLastAccessTime
GetFileLastAccessTimeUtc
GetFileLastWriteTime
GetFileLastWriteTimeUtc
GetFileLength
GetFileName
GetFileNameWithoutExtension
GetFileSystemEntries
GetFiles
GetFullPath
GetInvalidFileNameChars
GetInvalidPathChars
GetLogicalDrives
GetParent
GetPathRoot
GetRandomFileName
GetRelativePath
GetSymbolicLinkTarget
GetTempFileName
GetTempPath
HasExtension
IsPathFullyQualified
IsPathRooted
MoveDirectory
MoveFile
OpenFile
OpenFile
OpenFile
OpenRead
OpenText
OpenWrite
ReadAllBytes
ReadAllBytesAsync
ReadAllLines
ReadAllLines
ReadAllLinesAsync
ReadAllText
ReadAllText
ReadAllTextAsync
ResolveSymbolicLinkTarget
SetCurrentDirectory
SetDirectoryCreationTime
SetDirectoryCreationTimeUtc
SetDirectoryLastAccessTime
SetDirectoryLastAccessTimeUtc
SetDirectoryLastWriteTime
SetDirectoryLastWriteTimeUtc
SetFileAttributes
SetFileCreationTime
SetFileCreationTimeUtc
SetFileLastAccessTime
SetFileLastAccessTimeUtc
SetFileLastWriteTime
SetFileLastWriteTimeUtc
TrimEndingDirectorySeparator
Watch
WriteAllBytes
WriteAllBytesAsync
WriteAllLines
WriteAllLines
WriteAllLinesAsync
WriteAllText
WriteAllText
WriteAllTextAsync
IHasFileSystem
Operations
FileSystem
TestFileSystem
Operations
``.ctor``
RaiseChange
RaiseWatchError
ActiveWatchers
Axial.Hosting
DotNetApp
Operations
exitCode
run
FiberLogging
Operations
observer
observe
HostConfiguration
Operations
source
Hosting
Operations
watchdogWithHeartbeat
watchdogWith
watchdog
addApp
addAppWith
HttpFactory
Operations
live
MicrosoftLogging
Operations
sink
fromFactory
SystemdNotify
Operations
live
FlowHostedService<'env, 'error>
Operations
``.ctor``
HostedAppOptions
Representation
Default
StopHostOnCompletion
LogSink
ISystemdNotifier
Operations
Notify
Axial.Hosting.Node
NodeApp
Operations
arguments
exitCode
startWithOptions
start
runWithOptions
run
NodeLogging
Operations
sink
NodeRuntime
Operations
isNode
ensureNode
NodeAppOptions
Representation
Default
LogSink
Axial.Hosting.Browser
BrowserApp
Operations
queryParameters
mountWithOptions
startWithSignalOptions
mount
startWithSignal
BrowserLogging
Operations
sink
AbortSignal
BrowserAppOptions
Representation
Default
LogSink
Axial.Telemetry
Activity
Operations
runtimeSource
traceWithSource
traceOn
withTracer
traceWith
trace
ActivityTracer
Operations
create
FiberDumpTelemetry
Operations
record
FiberMetrics
Operations
meter
observer
observe
FiberTelemetry
Operations
observer
observe
observerWithSpans
observeWithSpans
Metrics
Operations
meter
counter
histogram
gauge
add
record
QueueMetrics
Operations
observe
Axial.Telemetry.JavaScript
FiberTelemetry
Operations
observer
observe
observerWithSpans
observeWithSpans
Otel
Operations
installNamed
install
installWith
uninstall
traceWith
trace
ContextApi
Operations
active
``with``
OpenTelemetryApi
Operations
context
trace
OtelContext
Span
Operations
``end``
setAttribute
setStatus
spanContext
TraceApi
Operations
getTracer
setSpan
Tracer
Operations
startSpan