Skip to content

Instantly share code, notes, and snippets.

@biac
Created December 9, 2011 13:03
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 biac/1451446 to your computer and use it in GitHub Desktop.
Save biac/1451446 to your computer and use it in GitHub Desktop.
LongTimeMethod()
public class LongTimeLogicSample
{
public static int LongTimeMethod(int n)
{
// このロジックは、処理に長い長~い時間が掛かるのだと思ってくれ。
// だけどこのメソッドは普通に書いてあって、非同期処理なんて考えてないものとする。
Thread.Sleep(3000);
return n * 2;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment