joyent/libuv — Issue #261: uv_queue_work should manage its own request
Author: shtylman
Created: 2011-11-28 02:05:57+00:00
State: open

Currently, when calling uv_queue_work you have to provide the uv_work_t object and then clean it up after you use it. This is very error prone. It would be nice to adopt libeio behavior here and just have the user provide the baton pointer. The library should handle the creation of the work_t and destruction of it.

Thoughts? I am happy to provide the patch if this is the way forward.