-
Notifications
You must be signed in to change notification settings - Fork 23
Fiber abstraction needed? #13
Comments
I'm going to look into a small abstraction layer to handle process start and fiber yields together |
I think this is done with #74 What do you think? |
Not really sure what @ComFreek was trying to encapsulate - I didn't think On Tue, Jun 7, 2016 at 6:30 PM, Dan Rumney [email protected] wrote:
|
As far as I remember, I wanted to insert an abstraction between the network code itself (component functions) and the runtime. This would give more flexibility when switching runtimes, especially between Fiber-like runtimes and generator runtimes (@dancrumb maybe you have seen some traces of it in the code base). In conclusion, I think this issue should be closed as there is currently no viable solution to overcome the language restrictions mentioned above. Apart from that, the current copier.js looks as 'abstracted' as it is probably achievable! |
The readme of node-fibers suggests to create an abstraction layer:
Fortunately, Fibers is (yet) only used in index.js and in core files (in the code base of my PR). "User land code" should ideally never require Fiber calls.
The text was updated successfully, but these errors were encountered: