Skip to content

Identifying in flight effects? #3013

Answered by mbrandonw
imfractured asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @imfractured, without making changes to TCA I think you only have two options. The boolean state like you mentioned, or possibly tracking that boolean state in the dependency itself so that you can ask the dependency if the work is still running. At least that way you do not need to keep booleans in your state to track that, but it does mean your mock dependencies need to do the extra work to also track that booleans correctly so that you can trust your tests.

Currently there is no way to ask the library if an effect with a specific ID is currently running. That is actually something we do want to add to the library, and it will be possible with some upcoming changes we want to make. B…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by imfractured
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants