|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| MAYAFLUX_API Vruta::Event MayaFlux::Kriya::on_message_matching | ( | std::shared_ptr< Vruta::NetworkSource > | source, |
| std::function< bool(const Core::NetworkMessage &)> | predicate, | ||
| std::function< void(const Core::NetworkMessage &)> | callback | ||
| ) |
Creates an Event coroutine that fires only when a predicate matches.
| source | Shared ownership of the NetworkSource |
| predicate | Returns true for messages that should trigger the callback |
| callback | Invoked with each matching message |
Definition at line 46 of file NetworkEvents.cpp.
Referenced by MayaFlux::on_network_message_matching().
Here is the caller graph for this function: