@elizarov I've realized that, which is why I tried the second approach, which is exactly what you propose here. It works great on my main device, but still results in
ClosedSendChannelException
on a couple of other devices I've tried.
Any idea what might be the issue?