Skip to content

Async task is appears to be blocking #363

@stan-stately

Description

@stan-stately

I'm trying to run a really simple test:

require "async"
describe "async" do
  it "tests async" do
    task = Async do
      sleep(100)
    end
    task.stop
    puts "done"
  end
end

This should return instantly right? why does the test take 100sec to run? i'm sorry if this is really obvious

im on:

  • ruby: 3.3.4
  • async: 2.21.1
  • io-event: 1.7.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions