Feb 9, 2023
Question is why would you like to cancel the first one? If this is about some debouncing (like clicks) you can create a separate debounced events and pipe them through some local channel.
This example should give you better idea: https://gist.github.com/linean/eeb6ed53770f9dc5b757b3bc1e8b0797