Skip to content

Instantly share code, notes, and snippets.

@jesuscampos
Last active October 12, 2018 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jesuscampos/f2a64dd5f1fabc666d8adb3a02281086 to your computer and use it in GitHub Desktop.
Save jesuscampos/f2a64dd5f1fabc666d8adb3a02281086 to your computer and use it in GitHub Desktop.
public class HomeController: Controller
{
public IActionResult Get()
{
var result = DoWork(100);
return View(result);
}
public long DoWork(int n)
{
// CPU-Bound work
// ...
return fibonacciNumber;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment