Open
Description
AFAIK, there's no way to run an assertion after a suspending function is invoked but before it returns (resumes with a return value). Is this possible?
Currently, mocking suspending functions return immediately when invoked. I would like to control the timing of when they resume with a value. Is this possible? Use case for loading some async data is:
- suspending function is invoked (without returning yet)
- assert that loading indicator is shown
- allow previously invoked suspending function to resume with value
- assert that loading indicator is no longer shown
Does MockitoK have a way to do this?