async
async copied to clipboard
An awesome asynchronous event-driven reactor for Ruby.
I'm on Ruby 3.1.1 and Async 2.0.1, Ubuntu 20.04. The following script hangs after the first Ctrl+C, but only if both sleeping tasks are active: ```ruby #!/usr/bin/env ruby require 'async'...
The 'Exceptions' section of the documentation: https://socketry.github.io/async/guides/getting-started/index.html#exception-handling Includes the code: ```ruby require 'async' task = Async do # Exception will be logged and task will be failed. raise "Boom" end...
There should be no reason to require `>= 3.1.0` instead of `>= 3.0.3`. The change was introduced with https://github.com/socketry/async/commit/d16f7fad5859dfd8f731388ce98eea2b42f55501 which doesn't really make sense since `io-event` itself requires only `>=...
Hi, After upgrade to async 2.0 and ruby 3.1.0, I get this error: ``` NoMethodError: undefined method `push' for nil:NilClass @selector.push(fiber) ^^^^^ ```
``` Error installing async: There are no versions of io-event (~> 1.0.0) compatible with your Ruby & RubyGems. Maybe try installing an older version of the gem you're looking for?...
Using Ruby 3.0.2 I'm trying the following in Async 1.30.1 and 2.0.0: ``` require 'async' Ractor.new { Async { 42 } } ``` This is the distilled means of reproducing...
Hi, @ioquatix as we talked on the call the other day, here's my list of questions about async that I wish I could have read somewhere so I can get...
> Do you mind explaining the expected use case? Because we have traverse which is very close to the implementation. If I recall, I was using #traverse to return a...
Certain access patterns, pool sizes, and numbers of fibers will result in fiber starvation when sharing a connection pool. The starvation occurs when the pool size is smaller than the...
Uncaught exceptions in tasks is shown in a format starting with a line like this: ``` 0.0s error: Async::Task [oid=0x3c] [pid=9016] [2020-12-16 21:01:17 +0100] ``` It would be useful if...