receiveCompletion and receiveValue are not being called
Solution 1:
I read this and added a .print("debugging")
before .sink
and the logs now include the following:
appeared and getting threads
in getThreads
getting threads
in executeQuery
debugging: receive subscription: (Future)
debugging: request unlimited
debugging: receive cancel
What this made me realize is that before my sink
methods could be called the Future was being cancelled. So, I looked at where I was instantiating this class and realized that it was in a short-lived method (onAppear
of a view). I moved instantiation to somewhere longer-lived and that allowed for the operations to complete and for the sink
methods to be called.