kvark / choir

Task Orchestration Framework
MIT License
52 stars 3 forks source link

Expose the owner task processor #29

Closed kvark closed 1 year ago

kvark commented 1 year ago

The idea is: once something is exposed to the task processor, either by getting an ExecutionContext, or a terminal task, it shouldn't need to get the choir argument in addition on that. Choir becomes a transient global: it's accessible where it needs to be accessible, but without the boilerplate to pass it around everywhere.

Note: the scope of the PR is reduced to only expose it on the execution context, and do it as an accessor method.