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

Consider providing access to the CoroutineScope in initialState #1030

Closed
rjrjr opened this issue Jun 14, 2023 · 1 comment
Closed

Consider providing access to the CoroutineScope in initialState #1030

rjrjr opened this issue Jun 14, 2023 · 1 comment

Comments

@rjrjr
Copy link
Contributor

rjrjr commented Jun 14, 2023

We've seen a number of use cases where we'd like to be able to start work in initialState and tear it down when the workflow session ends. You can almost do this with LifecycleWorker or runningSideEffect, except that those have no clean access to StateT, and so no easy way to hit the destruct button on whatever was kicked off by initialState.

It occurs to us that giving initialState the ability to launch work against the CoroutineScope that is managing a particular workflow session could be very convenient.

Needs thought, and a better description of exactly what use cases we're trying to enable.

cc @steve-the-edwards @ijwhelan to be more articulate than me. And @0legg if he's in a generous OSS mood.

@steve-the-edwards
Copy link
Contributor

Duplicates #990 . Closing but will prioritize #990 .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants