Skip to content

Commit

Permalink
Fixed node_async documentation example
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Jul 5, 2022
1 parent 9435a9d commit 5dc935e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/node.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ impl<S: Send + 'static> NodeListener<S> {
/// handler.signals().send_with_timer((), std::time::Duration::from_secs(1));
/// let (id, addr) = handler.network().listen(Transport::FramedTcp, "127.0.0.1:0").unwrap();
///
/// let task = listener.for_each(move |event| match event {
/// let task = listener.for_each_async(move |event| match event {
/// NodeEvent::Network(net_event) => { /* Your logic here */ },
/// NodeEvent::Signal(_) => handler.stop(),
/// });
Expand Down

0 comments on commit 5dc935e

Please sign in to comment.