Last active
October 13, 2018 15:29
-
-
Save jesuscampos/5a0ca1ddcc4c12d2f750537fe98b67ed to your computer and use it in GitHub Desktop.
This file contains 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
public long DoWork(int n) | |
{ | |
// CPU-Bound work | |
// ... | |
return fibonacciNumber; | |
} | |
public Task<long> DoWorkAsync(n) | |
{ | |
return Task.Run(() => DoWork(n)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment