Logo MVUish.Avalonia

Internal Module

Nested modules

Modules Description

NewSubs

Functions and values

Function or value Description

change onError dispatch (dupes, toStop, toKeep, toStart)

Full Usage: change onError dispatch (dupes, toStop, toKeep, toStart)

Parameters:
Returns: (SubId * IDisposable) list
Type parameters: 'a, 'b (requires :> System.IDisposable)

Apply a diff: warn on duplicates, stop removed, start added, keep the rest. Returns the new active set.

onError : string * exn -> unit
dispatch : 'a
dupes : SubId list
toStop : (SubId * 'b) list
toKeep : (SubId * IDisposable) list
toStart : (SubId * ('a -> IDisposable)) list
Returns: (SubId * IDisposable) list

diff activeSubs sub

Full Usage: diff activeSubs sub

Parameters:
Returns: SubId list * (SubId * IDisposable) list * (SubId * IDisposable) list * (SubId * Subscribe<'Msg>) list
Type parameters: 'Msg

Compare the active set with the requested set. Returns duplicates, subs to stop, subs to keep, and subs to start.

activeSubs : (SubId * IDisposable) list
sub : Sub<'Msg>
Returns: SubId list * (SubId * IDisposable) list * (SubId * IDisposable) list * (SubId * Subscribe<'Msg>) list

idToString subId

Full Usage: idToString subId

Parameters:
Returns: string
subId : SubId
Returns: string

stop onError subs

Full Usage: stop onError subs

Parameters:
    onError : string * exn -> unit
    subs : (SubId * 'a) list

Type parameters: 'a (requires :> System.IDisposable)

Stop a set of active subscriptions, reporting each failure.

onError : string * exn -> unit
subs : (SubId * 'a) list

tryStart onError dispatch (subId, start)

Full Usage: tryStart onError dispatch (subId, start)

Parameters:
    onError : string * exn -> unit
    dispatch : 'a
    subId : SubId
    start : 'a -> IDisposable

Returns: (SubId * IDisposable) option
Type parameters: 'a
onError : string * exn -> unit
dispatch : 'a
subId : SubId
start : 'a -> IDisposable
Returns: (SubId * IDisposable) option

tryStop onError (subId, sub)

Full Usage: tryStop onError (subId, sub)

Parameters:
onError : string * exn -> unit
subId : SubId
sub : IDisposable

warnDupe onError subId

Full Usage: warnDupe onError subId

Parameters:
    onError : string * exn -> 'a
    subId : SubId

Returns: 'a
Type parameters: 'a
onError : string * exn -> 'a
subId : SubId
Returns: 'a

Type something to start searching.