Returns an Observable that will execute the specified function when someone subscribes to it.
Returns an Observable that will execute the specified function when someone subscribes to it.
Write the function you pass so that it behaves as an Observable: It should invoke the
Subscriber's next
, error
, and completed
methods appropriately.
See Rx Design Guidelines (PDF) for detailed information.
See RxScalaDemo.createExampleGood
and RxScalaDemo.createExampleGood2
.
the type of the items that this Observable emits
a function that accepts a Observer[T]
, and invokes its next
,
onError
, and onCompleted
methods as appropriate
an Observable that, when someone subscribes to it, will execute the specified function
Converts a callback API to a function that returns an Observable.
Converts a callback API to a function that returns an Observable.
Give it a function `f` of type `f(x, callback)` and it will return a function `g` that when called as `g(x)` will output an Observable.
bindCallback
is not an operator because its input and output are not
Observables. The input is a function func
with some parameters, but the
last parameter must be a callback function that func
calls when it is
done. The output of bindCallback
is a function that takes the same
parameters as func
, except the last one (the callback). When the output
function is called with arguments, it will return an Observable where the
results will be delivered to.
Function with a callback as the last parameter.
A function which takes the arguments from the callback and maps those a value to emit on the output Observable.
The scheduler on which to schedule the callbacks.
A function which returns the Observable that delivers the same values the callback would deliver.
Converts a Node.
Converts a Node.js-style callback API to a function that returns an Observable.
It's just like `bindCallback`, but the callback is expected to be of type `callback(error, result)`.
bindNodeCallback
is not an operator because its input and output are not
Observables. The input is a function func
with some parameters, but the
last parameter must be a callback function that func
calls when it is
done. The callback function is expected to follow Node.js conventions,
where the first argument to the callback is an error, while remaining
arguments are the callback result. The output of bindNodeCallback
is a
function that takes the same parameters as func
, except the last one (the
callback). When the output function is called with arguments, it will
return an Observable where the results will be delivered to.
Function with a callback as the last parameter.
A function which takes the arguments from the callback and maps those a value to emit on the output Observable.
The scheduler on which to schedule the callbacks.
A function which returns the Observable that delivers the same values the callback would deliver.
Combines a list of source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
Combines a list of source Observables by emitting an item that aggregates the latest values of each of the source Observables each time an item is received from any of the source Observables, where this aggregation is defined by a specified function.
the common base type of source values
the result type
the list of source Observables
the aggregation function used to combine the items emitted by the source Observables
an Observable that emits items that are the result of combining the items emitted by the source Observables by means of the given aggregation function
Returns an Observable that will execute the specified function when someone subscribes to it.
Returns an Observable that will execute the specified function when someone subscribes to it.
Write the function you pass so that it behaves as an Observable: It should invoke the
Subscriber's next
, error
, and completed
methods appropriately.
See Rx Design Guidelines (PDF) for detailed information.
See RxScalaDemo.createExampleGood
and RxScalaDemo.createExampleGood2
.
the type of the items that this Observable emits
a function that accepts a Observer[T]
, and invokes its next
,
onError
, and onCompleted
methods as appropriate.
It can also return a Teardown function that will be called once the Observable is disposed.
an Observable that, when someone subscribes to it, will execute the specified function
Returns an Observable emitting the value produced by the Future as its single item.
Returns an Observable emitting the value produced by the Future as its single item. If the future fails, the Observable will fail as well.
Future whose value ends up in the resulting Observable
an Observable completed after producing the value of the future, or with an exception
Converts a Seq
into an Observable.
Converts a Seq
into an Observable.
Note: the entire iterable sequence is immediately emitted each time an
Observer subscribes. Since this occurs before the
Subscription
is returned, it is not possible to unsubscribe from
the sequence before it completes.
the type of items in the Seq
sequence and the
type of items to be emitted by the resulting Observable
the source Seq
sequence
an Observable that emits each item in the source Iterable
sequence
Creates an Observable that emits events of a specific type coming from the given event target.
Creates an Observable that emits events of a specific type coming from the given event target.
Creates an Observable by attaching an event listener to an "event target", which may be an object with addEventListener and removeEventListener, a Node.js EventEmitter, a jQuery style EventEmitter, a NodeList from the DOM, or an HTMLCollection from the DOM. The event handler is attached when the output Observable is subscribed, and removed when the Subscription is unsubscribed.
Emits 0
, 1
, 2
, ...
with a delay of duration
between consecutive numbers.
Emits 0
, 1
, 2
, ...
with a delay of duration
between consecutive numbers.
duration between two consecutive numbers
An Observable that emits a number each time interval.
Converts a sequence of values into an Observable.
Converts a sequence of values into an Observable.
Implementation note: the entire array will be immediately emitted each time an rxscalajs.subscription.ObserverFacade subscribes. Since this occurs before the subscription.Subscription is returned, it in not possible to unsubscribe from the sequence before it completes.
the type of items in the Array, and the type of items to be emitted by the resulting Observable
the source Array
an Observable that emits each item in the source Array
Converts a sequence of values into an Observable.
Converts a sequence of values into an Observable.
Implementation note: the entire array will be immediately emitted each time an rxscalajs.subscription.ObserverFacade subscribes. Since this occurs before the subscription.Subscription is returned, it in not possible to unsubscribe from the sequence before it completes.
the type of items in the Array, and the type of items to be emitted by the resulting Observable
the source Array
an Observable that emits each item in the source Array
Returns an Observable that mirrors the first source Observable to emit an item from the combination of this Observable and supplied Observables
Returns an Observable that mirrors the first source Observable to emit an item from the combination of this Observable and supplied Observables
sources used to race for which Observable emits first.
an Observable that mirrors the output of the first Observable to emit an item.
Creates an Observable that emits a sequence of numbers within a specified range.
Creates an Observable that emits a sequence of numbers within a specified range.
Emits a sequence of numbers in a range.
range
operator emits a range of sequential integers, in order, where you
select the start
of the range and its length
. By default, uses no
Scheduler and just delivers the notifications synchronously, but may use
an optional Scheduler to regulate those deliveries.
The value of the first integer in the sequence.
The number of sequential integers to generate. the emissions of the notifications.
An Observable of numbers that emits a finite range of sequential integers.
Returns an Observable that emits 0L
after a specified delay, and then completes.
Returns an Observable that emits 0L
after a specified delay, and then completes.
the initial delay before emitting a single 0L
Observable that emits 0L
after a specified delay, and then completes
Given a number of observables, returns an observable that emits a combination of each.
Given a number of observables, returns an observable that emits a combination of each. The first emitted combination will contain the first element of each source observable, the second combination the second element of each source observable, and so on.
a function that combines the items from the Observable and the Iterable to generate the items to be emitted by the resulting Observable
an Observable that emits the zipped Observables