async icon indicating copy to clipboard operation
async copied to clipboard

An awesome asynchronous event-driven reactor for Ruby.

Results 53 async issues
Sort by recently updated
recently updated
newest added

In scenarios where multiple tasks are running concurrently, and I need to stop all other tasks prematurely when one of them finishes; Is there a built-in mechanism or an established...

Hi, I recently tracked down a tricky silent failure related to switching from `Async` to `Sync` at the top level, as the best practices doc suggests. An exception in the...

I've learned that left-over, `suspended` fibers can retain ActiveRecord connections, causing the connection pool to run out of available connections (example: https://github.com/rmosolgo/graphql-ruby/issues/4739#issuecomment-1866671563). So, I added a test to my project...

```ruby An error occurred while installing fiber-local (1.0.0), and Bundler cannot continue. In gems.rb: sus-fixtures-async was resolved to 0.1.2, which depends on async was resolved to 2.6.4, which depends on...

Hi, Running this on Mac and Linux: ```ruby input, output = IO.pipe Async do puts "starting" Async do puts "reading..." line = input.gets puts "got #{line.inspect}" end puts "writting..." output.puts...

I have still no idea how to stop a Fiber from running (unschedule). I was told that i can raise an exception, but it is not working as i hoped....

Using with_timeout() makes gets() raise Errno::ENOENT. Is this correct? I would have expected Async::TimeoutError. ```ruby require 'async' Async do |task| task.with_timeout(0.1) { STDIN.gets } end ``` => ``` 0.0s warn:...

## Problem Statement Recently I've worked with a team of ~6 developers converting two services from `EventMachine` + `Synchrony` to `Async`. That has gone well, but one detail of the...

# Description When I use File.read in Async, the following exception is thrown. ```rb require "async" Async do |task| task.async do p File.read("README.md") end end ``` ``` 0.0s warn: Async::Task...

Defer stop does not mean "don't stop". It means there is some code which should ignore stop for a little while and the stop, kind of like an asynchronous ensure...