`status` used to equal 0 (success), now it is just a random number
(whatever happens to be in the register/stack location of this
argument that no longer exists in libuv, but never got remove from
Julia): https://github.com/joyent/libuv/blob/v0.8/include/uv.h#L291

the first argument to every libuv callback is the julia reference to
the object that caused the callback to trigger. In this case, as
Steven mentioned, this is a SingleAsyncWork object

possibly related: https://github.com/JuliaLang/julia/issues/1933

On Mon, Apr 7, 2014 at 2:32 PM, Steven G. Johnson <[email protected]> wrote:
> "data" in this example will be notifyasync (i.e., the SingleAsyncWork object
> whose handle was sent to uv_async_send); might be nicer to call it "work".
> No idea what "status" is.
>
> Would be good to document this in the manual (it only says "you'll most
> likely just discard" the callback parameters).   In the case of ZMQ, I
> actually use the "data" parameter
> (https://github.com/JuliaLang/ZMQ.jl/blob/master/src/ZMQ.jl#L316-L334).

Reply via email to