RandomEngy / fcm-push-listener

15 stars 1 forks source link

Message stream interface instead of callbacks #3

Open unreadablewxy opened 3 months ago

unreadablewxy commented 3 months ago

Would you like a patch to lean more into async by replacing the handler callback with a message stream?

RandomEngy commented 3 months ago

I'd be happy with such a patch, as long as it makes calling the API easier. I'm not the most fluent with Rust, and I did not consider a message stream approach here.