Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

pause/resume for tasks #250

Copy link
Copy link
@pschrammel

Description

@pschrammel
Issue body actions

I implemented a naive pushback example (https://github.com/socketry/falcon/tree/main/examples/pushback) but it has some quirks:

  1. I had to implement an external loop to check for free slots (this causes a certain delay but doesn't explain delays of 500ms)
  2. the task does a kind of busy waiting (checking if it's allowed to continue). This keeps the async event loop busy (guessing). I think the major delay comes from this waiting loop.

I will try to implement something more nio4r compatible (I'm currently thinking of named pipes and reading to "pause" a task and write to "resume" a task). But perhaps a "pause"/"resume" could be implemented into the framework. currently a task can only be "stopped" and that's it.

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

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.