Skip to content

Commit

Permalink
Updated Basics.md - Missing parentheses (StackExchange#1245)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoance authored and ttingen committed Nov 19, 2019
1 parent b824570 commit 851c39d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/Basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,13 @@ In v2, you can subscribe without providing a callback directly to the `Subscribe
// Synchronous handler
sub.Subscribe("messages").OnMessage(channelMessage => {
Console.WriteLine((string) channelMessage.Message);
};
});

// Asynchronous handler
sub.Subscribe("messages").OnMessage(async channelMessage => {
await Task.Delay(1000);
Console.WriteLine((string) channelMessage.Message);
};
});
```

Separately (and often in a separate process on a separate machine) you can publish to this channel:
Expand Down

0 comments on commit 851c39d

Please sign in to comment.