FSharp.Control.Reactive


TestNotification

Namespace: FSharp.Control.Reactive.Testing
Attributes:
[<CompilationRepresentation(4)>]

The Reactive module provides operators for working with TestObserver<_> in F#.

Functions and values

Function or valueDescription
errors(arg1)
Signature: TestNotifications<'b> -> exn list
Type parameters: 'b

Filters the OnError recorded notifications of the specified list.

filter f arg2
Signature: f:(TestNotification<'?9127> -> bool) -> TestNotifications<'?9127> -> TestNotifications<'?9127>
Type parameters: '?9127

Filters the incoming TestNotifications on a given predicate function.

isError(_arg1)
Signature: _arg1:TestNotification<'?9121> -> bool
Type parameters: '?9121

Determines if the incoming TestNotification is an 'OnError()' notification.

isNext(_arg1)
Signature: _arg1:TestNotification<'?9119> -> bool
Type parameters: '?9119

Determines if the incoming TestNotification is an 'OnNext()' notification.

mapErrors(f)
Signature: f:(exn -> '?9146) -> TestNotifications<'?9147> -> '?9146 list
Type parameters: '?9146, '?9147

Maps the OnError recorded notifications of the specified list to other values.

mapNexts(f)
Signature: f:('?9141 -> '?9142) -> TestNotifications<'?9141> -> '?9142 list
Type parameters: '?9141, '?9142

Maps the OnNext recorded notification values of the specified list to other values.

nexts(arg1)
Signature: TestNotifications<'b> -> 'b list
Type parameters: 'b

Filters the OnNexts recorded notifiation values of the specified list.

onCompleted(t)
Signature: t:int64 -> Recorded<Notification<'b>>
Type parameters: 'b

Factory function for an OnCompleted notification record at a given time.

onError t ex
Signature: t:int64 -> ex:exn -> Recorded<Notification<'b>>
Type parameters: 'b

Factory function for an OnError notification record at a given time with a given error.

onErrors(ms)
Signature: ms:TestNotifications<'?9131> -> TestNotifications<'?9131>
Type parameters: '?9131

Filters the 'OnError()' recorded notifiations values of the specified list.

onNext t x
Signature: t:int64 -> x:'a -> Recorded<Notification<'a>>
Type parameters: 'a

Factory function for an OnNext notification record at a given time with a given value.

onNexts(ms)
Signature: ms:TestNotifications<'?9129> -> TestNotifications<'?9129>
Type parameters: '?9129

Filters the 'OnNext()' recorded notifiations of the specified list.

toOption(_arg1)
Signature: _arg1:TestNotification<'?9123> -> '?9123 option
Type parameters: '?9123

Converts the incoming TestNotification to an Option with: 'OnNext()' notifications as Some and 'OnError()' and 'OnCompleted()' as None.

toResult(_arg1)
Signature: _arg1:TestNotification<'?9125> -> Result<'?9125,exn>
Type parameters: '?9125

Converts the incoming TestNotification to an Result with: 'OnNext()' notifications as Some and 'OnError()' and 'OnCompleted()' as Error.

unwrap(arg1)
Signature: TestNotifications<'?9115> -> TestNotification<'?9115> list
Type parameters: '?9115

Unwraps the 'TestNotifications' pattern into a 'TestNotification list'.

wrap(arg0)
Signature: arg0:TestNotification<'?9113> list -> TestNotifications<'?9113>
Type parameters: '?9113

Active patterns

Active patternDescription
( |Next|Error|Completed| )(x)
Signature: x:TestNotification<'a> -> Choice<'a,exn,unit>
Type parameters: 'a

Active pattern on the different kind of 'TestNotification''s (a.k.a. 'Recorded>').

CompiledName: |Next|Error|Completed|

Fork me on GitHub