-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Awesome project! I tried the Async gem but currently it's not supported on Windows due to io-event gem, so i gave this one a try and ran into an error.
Environment:
- Windows 10
- Ruby 3.1.1p18 (2022-02-18 revision 53f5fc4236) [x64-mingw-ucrt] installed via (RailsInstaller)
Getting an error
<internal:io>:63:in `read_nonblock': Bad file descriptor @ rb_io_set_nonblock - C:/Windows/System32/drivers/etc/hosts (Errno::EBADF)
Reproduction:
require 'fiber_scheduler'
require 'open-uri'
FiberScheduler do
Fiber.schedule { URI.open('http://ip.me') }
Fiber.schedule { URI.open('http://ip.me') }
end
I tried a different scheduler found at the very bottom of this article and it works right away but I'm not sure if it's reliable.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
