Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AsyncFramework support sleeping through context #1852

Open
godexsoft opened this issue Jan 28, 2025 · 0 comments
Open

AsyncFramework support sleeping through context #1852

godexsoft opened this issue Jan 28, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@godexsoft
Copy link
Collaborator

Summary

It is useful for certain long running tasks to be able to pause for arbitrary amounts of time.
Different contexts would implement this differently (e.g. CoroContext could use an async timer and yield instead of actually pausing the thread).

Motivation

ETL ng task manager needs a better way to sleep between attempts when there is nothing to do.

Solution

The stopToken passed to client functions by async framework is currently used just as a stop token. Let's upgrade it into a context object that can act as a stop token but also provides a way to pause the task.

Possibly combine with: #1380

@godexsoft godexsoft added the enhancement New feature or request label Jan 28, 2025
@godexsoft godexsoft self-assigned this Jan 28, 2025
@github-project-automation github-project-automation bot moved this to 📋 Backlog in Clio Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant