Closed Asmod4n closed 9 years ago
couldn't get UV.queue_work to work by reading the source.
Thought it works like this:
UV.queue_work(lambda { 2 + 2 }) do |result| puts result end
But its complaining about the lambda, same goes for Proc.new or proc {}.
The argument of UV.queue_work can only take C function Proc since it may modify mruby resource in other thread. Use mruby-thread instead.
UV.queue_work
Proc
couldn't get UV.queue_work to work by reading the source.
Thought it works like this:
But its complaining about the lambda, same goes for Proc.new or proc {}.