Freckle


SampleAsync

Namespace: Freckle

SampleAsync module is designed to help working with samples that specifically returns Async

Nested types and modules

ModuleDescription
ComputationalExpression

Setup for computational expression(Do Notation in haskell) for SampleAsync

Functions and values

Function or valueDescription
bind f m
Signature: f:('?7238 -> Sample<Async<'?7239>>) -> m:Sample<Async<'?7238>> -> Sample<Async<'?7239>>
Type parameters: '?7238, '?7239

Bind for the monad type class

doAsync das sa
Signature: das:Async<'?7245> -> sa:Sample<Async<'?7246>> -> Sample<Async<'?7246>>
Type parameters: '?7245, '?7246

Attach an async operation at the end of a SampleAsync without changing it's output. Can be useful if you want to add a polling delay

ignore s
Signature: s:Sample<Async<'?7236>> -> Sample<Async<unit>>
Type parameters: '?7236

Discards the result of a SampleAsync

join m p
Signature: m:Sample<Async<Sample<Async<'a>>>> -> p:Period -> Async<'a>
Type parameters: 'a

Joins nested SampleAsync into a single sampleAsync

map f m
Signature: f:('?7231 -> '?7232) -> m:Sample<Async<'?7231>> -> Sample<Async<'?7232>>
Type parameters: '?7231, '?7232

Maps a SampleAsync from one result to another

ofAsync x
Signature: x:Async<'?7241> -> Sample<Async<'?7241>>
Type parameters: '?7241

Transforms an async type into a SampleAsync

ofSample x
Signature: x:Sample<'?7243> -> Sample<Async<'?7243>>
Type parameters: '?7243

Transforms a Sample type into a SampleAsync

pure' a
Signature: a:'?7229 -> Sample<Async<'?7229>>
Type parameters: '?7229

Get a SampleAsync from a value

Fork me on GitHub