waku-org / waku-rust-bindings

Rust wrapper over go-waku ffi
14 stars 6 forks source link

Nwaku 2 event callback test #88

Closed danielSanchezQ closed 7 months ago

danielSanchezQ commented 7 months ago

Use a channel to recieve events instead of allowing setting callbacks. Events is generic, depending on what nwaku returns in the callbacks it can be replace by an specific type or maybe we can create a trait for such events. this is just a broad idea as I could not really check if it compiles.

danielSanchezQ commented 7 months ago

This concept was integrated in a different pr by @richard-ramos