Created
December 9, 2011 13:03
-
-
Save biac/1451446 to your computer and use it in GitHub Desktop.
LongTimeMethod()
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 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