Commit 752a7bb1 authored by Nick Craver's avatar Nick Craver Committed by GitHub

Merge pull request #506 from DeRauk/CorrectConcurrencyCodeExample

Correct Concurrency section code example
parents 16cf3b77 748f1665
......@@ -97,7 +97,7 @@ Concurrency
It should be noted that the pipeline / multiplexer / future-value approach also plays very nicely with continuation-based asynchronous code; for example you could write:
```C#
string value = await db.StringGet(key);
string value = await db.StringGetAsync(key);
if (value == null) {
value = await ComputeValueFromDatabase(...);
db.StringSet(key, value, flags: CommandFlags.FireAndForget);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment