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

Tasks over workers #418

Open
Sygmei opened this issue Jan 6, 2022 · 0 comments
Open

Tasks over workers #418

Sygmei opened this issue Jan 6, 2022 · 0 comments
Labels
feature The issue is about a new incoming / requested feature
Projects

Comments

@Sygmei
Copy link
Member

Sygmei commented Jan 6, 2022

Tasks over worker is a wrapper that allows the user to manipulate a Worker as if it was a Task.

It can be awaited and return the Worker results.

function Task.GetScore(ctx)
  local worker = CreateScoreWorker();
  local score = ctx:wait_for(worker.hooks.complete);
end
@Sygmei Sygmei added the feature The issue is about a new incoming / requested feature label Jan 6, 2022
@Sygmei Sygmei added this to To do in Version 0.6 via automation Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature The issue is about a new incoming / requested feature
Projects
Version 0.6
  
To do
Development

No branches or pull requests

1 participant