You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 20, 2018. It is now read-only.
<ahref="#rxnodefromcallbackfunc-scheduler-context">#</a> [Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/index.js#L20-L22"View in source")
34
-
35
-
**Deprecated in favor of `Rx.Observable.fromCallback` in rx.async.js.**
36
-
37
-
Converts a callback function to an observable sequence.
38
-
39
-
#### Arguments
40
-
1.`func`*(Function)*: Callback function
41
-
2.`[scheduler = Rx.Scheduler.timeout]`*(Scheduler)*: Scheduler used to execute the callback.
42
-
3.`[context]`*(Any)*: The context to execute the callback.
43
-
44
-
#### Returns
45
-
*(Function)*: Function, when called with arguments, creates an Observable sequence from the callback.
<ahref="#rxnodefromcallbackfunc-scheduler-context">#</a> [Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/index.js#L34-L36"View in source")
85
-
86
-
**Deprecated in favor of `Rx.Observable.fromNodeCallback` in rx.async.js.**
87
-
88
-
Converts a Node.js callback style function to an observable sequence. This must be in function (err, ...) format.
89
-
90
-
#### Arguments
91
-
1.`func`*(Function)*: Callback function which must be in function (err, ...) format.
92
-
2.`[scheduler = Rx.Scheduler.timeout]`*(Scheduler)*: Scheduler used to execute the callback.
93
-
3.`[context]`*(Any)*: The context to execute the callback.
94
-
95
-
#### Returns
96
-
*(Function)*: An function which when applied, returns an observable sequence with the callback arguments as an array.
97
-
98
-
#### Example
99
-
```js
100
-
var fs =require('fs');
101
-
var Rx =require('rx');
102
-
var RxNode =require('rx-node');
103
-
104
-
var source =RxNode.fromNodeCallback(fs.stat)('file.txt');
<ahref="#rxnodefromeventeventemitter-eventname">#</a> [Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/index.js#L48-L50"View in source")
135
-
136
-
**Deprecated in favor of `Rx.Observable.fromEvent` in rx.async.js.**
137
-
138
-
Handles an event from the given EventEmitter as an observable sequence.
139
-
140
-
#### Arguments
141
-
1.`eventEmitter`*(EventEmitter)*: The EventEmitter to subscribe to the given event.
142
-
2.`eventName`*(String)*: The event name to subscribe.
143
-
144
-
#### Returns
145
-
*(Observable)*: An observable sequence generated from the named event from the given EventEmitter.
<ahref="#rxnodetoeventemitterobservable-eventname">#</a> [Ⓢ](https://github.com/Reactive-Extensions/RxJS/blob/master/index.js#L60-L88"View in source")
0 commit comments