Created
          July 24, 2014 21:36 
        
      - 
      
- 
        Save jz5/d7f78b39b956f10c370f to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | Sub Main() | |
| Dim t = Task.Factory.StartNew( | |
| Async Function() | |
| Dim msg = GetMessage() | |
| Await Tweet(msg) | |
| End Function).Unwrap | |
| Try | |
| t.Wait() | |
| Catch aEx As AggregateException | |
| For Each e In aEx.InnerExceptions | |
| Console.WriteLine(e.Message) | |
| Next | |
| Catch ex As Exception | |
| Console.WriteLine(ex.Message) | |
| End Try | |
| End Sub | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment