Converting event listeners into streams using the Effect library involves creating a stream that ...
Hello! I've only started using effect and i like it so far, but I have some troubles converting parts of my codebase to it.
Can someone help me understand how to properly turn event listener into stream?
For context:
The code I had looked like this:
I've tried to turn this into Effect's
Will this work?
Can someone help me understand how to properly turn event listener into stream?
For context:
listen function is from tauri api, it needs to be awaited in order to start calling callback given to it.The code I had looked like this:
I've tried to turn this into Effect's
Stream but I'm not sure how to do it properly.Will this work?
