Better HN
topnewbestaskshowjobs
Log inSign up

sam-mccall

2 karma · joined Jan 17, 2011 (15y ago) · 2 submissions

Submissions

comment 15y ago · link · parent

Sorry I missed the discussion!

Just wanted to add a pointer to what I ended up using: https://github.com/sam-mccall/ship

It's lets you create pseudo-threads, you pretend you're calling a sync function, and get a promise back, which you can call methods on (giving more promises) etc.

It needs a rewrite to allow objects in different pseudo-threads to interact - i.e. the threads to cross. Currently it's just a queue of actions to perform which doesn't allow this.

comment 15y ago · link · parent

And later still:

https://github.com/sam-mccall/node-ship

(supports a few more things than just method chaining)