gojek/wrest

Make Wrest Evented

Closed this issue · 3 comments

Callbacks getting Evented would be awesome.

Discuss.

Having callback run async would certainly be useful - at it's simplest, the callbacks just run on a separate thread if you add :async => true to the callback options.

By 'evented,' do you mean using EventMachine? Callbacks are implicitly invoked when events occur, like a response with a code of 200, so they are already evented; it's just that they are invoked synchronously.

After some discussion, we've decided to implement this as a new HTTP backend using em-http

This has been closed by #96