There is no generic operators
as in RxJs yet, but the main idea behind is presented here...
A small multi-threaded C++ library (so, does not include any main) compiled with emscripten and pthread running under the main thread in the browser, a web worker or using node.js
.
Note: Emscripten will produce lib.js
.
Running this lib in the main thread is fine but, obviously, block the main thread. Running it using a web worker leads no error with modification of the worker script (see below)
Run fine except that it prevents Node app from ever exiting.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* ------------------------------------------------------------ | |
* Show how convenient it is to use classes instead of a bunch | |
* of C functions. | |
* | |
* Part of the OOP course for PhD students and Researchers. | |
* | |
* Contact: [email protected] | |
* ------------------------------------------------------------ | |
*/ |