Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deanrad/rxfx
/ functions
Functions
271 in github.com/deanrad/rxfx
⨍
Functions
271
◇
Types & classes
57
↓ 284 callers
Function
after
( delayArg: number | Promise<any> | typeof setTimeout, valueProvider?: T | ((v?: T) => T) | Observable<T>,
after/src/after.ts:69
↓ 151 callers
Method
subscribe
()
bus/src/bus.ts:272
↓ 108 callers
Method
trigger
* Puts an event onto the bus, firing any listeners whose predicate returns `true`. * Events go first through guards, then filters, then spies, then
bus/src/bus.ts:190
↓ 105 callers
Method
next
(v: MatchType)
bus/src/bus.ts:174
↓ 72 callers
Method
request
Explicitly pass a request object
service/src/types.ts:172
↓ 49 callers
Function
createEffect
( handler: EffectSource<Request, Response>, concurrencyOperator = mergeMap, initialState?: TState )
effect/src/createEffect.ts:50
↓ 49 callers
Function
createServiceListener
( actionNamespace: string, bus: Bus<Action<TRequest | TNext | TError | void>>, handler: EventHandler<TRe
service/src/createService.ts:61
↓ 37 callers
Method
listen
Assigns a side-effect producing function to matching events in Concurrency Mode "Immediate". * Newly returned effects are begun immediately, and so
bus/src/bus.ts:250
↓ 32 callers
Method
query
* Returns an Observable of events for which the predicate returns `true`. * The returned Observable completes upon a `bus.reset`. * If the predi
bus/src/bus.ts:143
↓ 30 callers
Method
complete
()
bus/src/bus.ts:273
↓ 30 callers
Method
unsubscribe
()
bus/src/bus.ts:275
↓ 28 callers
Method
add
(tween: Tween<UnknownProps>)
animation/src/tweenjs/Group.ts:29
↓ 21 callers
Function
after
( delaySpec: number | Promise<unknown> | typeof setTimeout, objOrFn?: T | Thunk<T> | Observable<T> )
operators/test/util/after.ts:17
↓ 21 callers
Function
mostRecentOf
(ary: T[])
service/test/createAsyncListService.spec.ts:9
↓ 20 callers
Method
filter
Run a function synchronously for all runtime events, after guards, and prior to spies and listeners. * A filter may modify, or replace an event. Ho
bus/src/bus.ts:419
↓ 19 callers
Method
spy
Run a function (synchronously) for all runtime events, prior to all listeners. Throwing an exception will terminate the spy. * @returns A subscript
bus/src/bus.ts:437
↓ 18 callers
Method
error
()
bus/src/bus.ts:171
↓ 16 callers
Method
reset
* Cancels current and queued effects, and returns the state to its initial value
service/src/types.ts:60
↓ 15 callers
Function
createEvent
(type: string)
fsa/src/createEvents.ts:26
↓ 14 callers
Function
createQueueingEffect
( handler: EffectSource<Request, Response>, initialState?: TState )
effect/src/createEffect.ts:308
↓ 13 callers
Method
send
Get a promise for the next response or error. Note: works best for a queueing service, otherwise may not be the response/error that was triggered by t
service/src/types.ts:165
↓ 13 callers
Function
useService
( service: UsableAsService<TRequest, TState, TError, unknown>, options: UseServiceOptions = {} )
react/src/useService.ts:36
↓ 13 callers
Function
useWhileMounted
(sourceFactory: SubscriptionFactory)
react/src/useWhileMounted.ts:25
↓ 11 callers
Method
cancelCurrent
Cancels the current handling by triggering service.actions.cancel. * The effect is truly canceled if it was started from an Observable. * The ca
service/src/types.ts:41
↓ 11 callers
Method
guard
Run a function synchronously for all runtime events, prior to all filters, spies and listeners. * Throwing an exception will raise to the triggerer
bus/src/bus.ts:397
↓ 10 callers
Function
matchesAny
(...acs: ActionCreator<any>[])
service/src/createService.ts:25
↓ 9 callers
Function
capturing
(bus: Bus<T>, testFn: (arg: T[]) => void | Promise<any>)
bus/test/bus.spec.ts:24
↓ 9 callers
Function
createService
( actionNamespace: string, handler: EventHandler<TRequest, TNext>, reducerProducer?: ReducerProducer<TRe
service/src/createService.ts:400
↓ 9 callers
Function
handler
()
service/test/types.spec.ts:12
↓ 9 callers
Method
stop
Terminates the listener, any of its Observable handlings. * @returns The closed subscription.
service/src/types.ts:36
↓ 8 callers
Function
eventsOf
(bus: Bus<T>)
service/test/createService.spec.ts:1514
↓ 7 callers
Method
observe
( callbacks: Partial<ProcessLifecycleCallbacks<Request, Response, Error>> )
effect/src/types.ts:79
↓ 6 callers
Function
operatorForMode
(mode?: ConcurrencyMode)
service/src/createService.ts:34
↓ 6 callers
Method
request
fire off a request
react/src/useService.ts:14
↓ 5 callers
Function
makeAwaitable
( obs: Observable<T>, observer?: Partial<TapObserver<T>> )
after/src/after.ts:24
↓ 5 callers
Function
queueOnlyLatest
( workCreator: (event: T) => ObservableInput<R>, mapper?: (_: T, inner: R) => S )
operators/src/queueOnlyLatest.ts:20
↓ 4 callers
Function
actionCreator
( type: string, commonMeta?: Meta, isError: ((payload: Payload) => boolean) | boolean = defaultIsE
fsa/src/typescript-fsa.ts:158
↓ 4 callers
Function
createQueueingServiceListener
( actionNamespace: string, bus: Bus<Action<TRequest | TNext | TError | void>>, handler: EventHandler<TRe
service/src/createService.ts:429
↓ 4 callers
Function
createReplacingServiceListener
( actionNamespace: string, bus: Bus<Action<TRequest | TNext | TError | void>>, handler: EventHandler<TRe
service/src/createService.ts:552
↓ 4 callers
Method
getId
()
animation/src/tweenjs/Tween.ts:52
↓ 4 callers
Function
mapper
(t: number, r: string)
operators/test/queueOnlyLatest.spec.ts:19
↓ 4 callers
Method
observeWith
Creates an {@link EffectObserver} which triggers the handlers' lifecycle events, after running through a mapping function. * Use this when the list
bus/src/bus.ts:471
↓ 4 callers
Function
padToTime
(minimumMs: number)
operators/src/padToTime.ts:9
↓ 3 callers
Function
becomesInactive
(activity: ActivityTracked)
bus/src/bus.ts:532
↓ 3 callers
Method
cancelCurrentAndQueued
Cancels the current handling by triggering service.actions.cancel. * In addition, any operations enqueued will not be begun. (Safe to call even if
service/src/types.ts:45
↓ 3 callers
Function
createAsyncListService
( namespace: string = `list/${anonListCount++}`, delay: number = THRESHOLD.AnimationShort, finder: (obj1
service/src/createAsyncListService.ts:31
↓ 3 callers
Function
createCancelableEffect
()
react/src/__tests__/useService.test.ts:7
↓ 3 callers
Function
createProcessEvents
( ns: string )
fsa/src/createEvents.ts:36
↓ 3 callers
Method
createRemovalSub
( matcher: Function, fn: Function, all: Array<[Predicate<EventType>, (item: EventType) => unknown]
bus/src/bus.ts:509
↓ 3 callers
Function
createTogglingServiceListener
( actionNamespace: string, bus: Bus<Action<TRequest | TNext | TError | void>>, handler: EventHandler<TRe
service/src/createService.ts:674
↓ 3 callers
Function
forward
( source: Observable<any>, matcher: Parameters<Bus<Action<Subtype>>['filter']>[0], sink: (v: MappedType)
peer/src/forward.ts:19
↓ 3 callers
Method
listenSwitching
Assigns a side-effect producing function to matching events in Concurrency Mode "Switching". * Any existing effect is canceled (if it is an Observa
bus/src/bus.ts:343
↓ 3 callers
Method
nextEvent
* Returns a Promise for the first event for which the predicate returns `true`. * The returned Promise will be rejected upon a `bus.reset`. * If
bus/src/bus.ts:163
↓ 3 callers
Function
outbox
(a: Action<any>)
peer/test/peer.spec.ts:10
↓ 3 callers
Method
reset
()
effect/src/types.ts:83
↓ 3 callers
Method
start
(time: number = now())
animation/src/tweenjs/Tween.ts:83
↓ 3 callers
Function
timeoutHandler
( opts: TimeoutOptions<TRequest, TError>, handler: (req: TRequest) => ObservableInput<TNext> // type of ar
service/src/modifyHandler.ts:27
↓ 3 callers
Function
toggleMap
( workCreator: (event: T) => ObservableInput<R>, mapper?: (_: T, inner: R) => S )
operators/src/toggleMap.ts:26
↓ 3 callers
Function
tweenToValue
( startValue: Start, finalValue: End, duration: number, easing: (value: number) => number = Easing.Lin
animation/src/tweens.ts:10
↓ 2 callers
Method
_swapEndStartRepeatValues
(property: string)
animation/src/tweenjs/Tween.ts:498
↓ 2 callers
Function
actionCreatorFactory
( prefix?: string | null, defaultIsError: (payload: any) => boolean = (p) => p instanceof Error )
fsa/src/typescript-fsa.ts:150
↓ 2 callers
Method
addTeardown
* Adds a function to be called only once when stop() is invoked
service/src/types.ts:55
↓ 2 callers
Method
completeCurrent
Completes the current handling, triggering actions.complete. If a value for `final` is provided, * that is emitted via actions.next first. Useful t
service/src/types.ts:50
↓ 2 callers
Function
createImmediateEffect
( handler: EffectSource<Request, Response>, initialState?: TState )
effect/src/createEffect.ts:293
↓ 2 callers
Function
createPeer
( props: LeadPeerProps )
peer/src/peer.ts:45
↓ 2 callers
Function
createQueueingService
( actionNamespace: string, handler: EventHandler<TRequest, TNext>, reducerProducer?: ReducerProducer<TRe
service/src/createService.ts:461
↓ 2 callers
Function
createSwitchingServiceListener
( actionNamespace: string, bus: Bus<Action<TRequest | TNext | TError | void>>, handler: EventHandler<TRe
service/src/createService.ts:491
↓ 2 callers
Function
debounceByPromise
(obs: Observable<T>)
operators/src/debounceByPromise.ts:7
↓ 2 callers
Function
evaluateFormula
(formula)
examples/7guis-cells/7-cells.js:15
↓ 2 callers
Function
executor
(req: Request)
effect/src/createEffect.ts:179
↓ 2 callers
Function
getInitialState
( reducer: ServiceReducer<TRequest, TNext, TError, TState> )
service/src/createService.ts:157
↓ 2 callers
Function
makeWork
(trigger: T)
operators/src/queueOnlyLatest.ts:46
↓ 2 callers
Method
observeAll
Creates an {@link EffectObserver} which triggers each value from the handler back onto the bus. * Use this when the listener returns items suitable
bus/src/bus.ts:451
↓ 2 callers
Function
onceInactive
()
service/src/createService.ts:100
↓ 2 callers
Function
pause
(duration: number)
after/src/after.ts:152
↓ 2 callers
Function
randomizePreservingAverage
(duration: number)
perception/src/randomizer.ts:4
↓ 2 callers
Function
reducer
(state = initial, e)
service/test/types.spec.ts:14
↓ 2 callers
Method
remove
(tween: Tween<UnknownProps>)
animation/src/tweenjs/Group.ts:34
↓ 2 callers
Method
stopChainedTweens
()
animation/src/tweenjs/Tween.ts:256
↓ 2 callers
Function
trace
( effect: EffectRunner<any, any, any, any>, prefix = 'rxfx', fn = console.log )
effect/src/createEffect.ts:457
↓ 2 callers
Method
update
* @returns true if the tween is still playing after the update, false * otherwise (calling update on a paused tween still returns true because * i
animation/src/tweenjs/Tween.ts:342
↓ 2 callers
Function
useAtUnmount
(unmountCallback: () => void)
react/src/useWhileMounted.ts:96
↓ 2 callers
Function
useClosureListener
( args: ListenerArgs<TConsequence, TMatchType>, deps: any[] = [] )
react/src/useClosureHandlers.ts:29
↓ 2 callers
Function
useStableCallback
(producer: (...args: any[]) => T)
react/src/stabilityHooks.ts:9
↓ 2 callers
Function
withTiming
(events)
bus/test/bus.spec.ts:40
↓ 1 callers
Method
_handleRelativeValue
(start: number, end: number | string)
animation/src/tweenjs/Tween.ts:486
↓ 1 callers
Method
_setupProperties
( _object: UnknownProps, _valuesStart: UnknownProps, _valuesEnd: UnknownProps, _valuesStartRepeat: Unk
animation/src/tweenjs/Tween.ts:122
↓ 1 callers
Method
_updateProperties
( _object: UnknownProps, _valuesStart: UnknownProps, _valuesEnd: UnknownProps, value: number, )
animation/src/tweenjs/Tween.ts:448
↓ 1 callers
Method
cancelCurrent
cancel only the in-flight request
react/src/useService.ts:16
↓ 1 callers
Method
cancelCurrentAndQueued
cancel in-flight + queued requests
react/src/useService.ts:18
↓ 1 callers
Function
convertSlayToJest
(spec: SlayItem)
examples/slayr/convert/jest-emitter.ts:84
↓ 1 callers
Function
createBlockingEffect
( handler: EffectSource<Request, Response>, initialState?: TState )
effect/src/createEffect.ts:339
↓ 1 callers
Function
createBlockingServiceListener
( actionNamespace: string, bus: Bus<Action<TRequest | TNext | TError | void>>, handler: EventHandler<TRe
service/src/createService.ts:611
↓ 1 callers
Function
createCustomEffect
( handler: EffectSource<Request, Response>, concurrencyOperator = mergeMap, initialState?: TState )
effect/src/createEffect.ts:439
↓ 1 callers
Function
createDebouncedEffect
( msec: number = DEFAULT_DEBOUNCE_INTERVAL )
effect/src/createEffect.ts:408
↓ 1 callers
Function
createRequestMergeReducer
(initialState: TNext)
service/src/reducers.ts:37
↓ 1 callers
Function
createResponseMergeReducer
(initialState: TNext)
service/src/reducers.ts:20
↓ 1 callers
Function
createResponseReducer
(initialState: TNext)
service/src/reducers.ts:6
↓ 1 callers
Function
createSwitchingEffect
( handler: EffectSource<Request, Response>, initialState?: TState )
effect/src/createEffect.ts:323
↓ 1 callers
Function
createThrottledEffect
( msec: number = DEFAULT_DEBOUNCE_INTERVAL )
effect/src/createEffect.ts:375
next →
1–100 of 271, ranked by callers