Flow, such as one created via
flow() is welcome to call
functions. Those functions are welcome to switch the context to use a different
dispatcher, perhaps moving long-running work off to
However, you cannot use
withContext() within the
flow() lambda expression
directly. That leads to a compile error.