Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void FooCommand()
- {
- Future<int> BarFuture = new Future<int>( () => BarCommand() );
- // Do Foo's Processing - Bar will (may) be running in parallel
- int barResult = BarFuture.Value;
- // More processing that needs barResult
- }
Add Comment
Please, Sign In to add comment