Created
December 29, 2012 15:27
-
-
Save potix2/4407555 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
//継続的デリバリー p.265から | |
private void ConfirmEmailWasReceived() { | |
TimeStamp testStart = TimeStamp.NOW; | |
do { | |
if (EmailFound()) { | |
return; | |
} | |
Wait(SMALL_PAUSE); | |
} while(TimeStamp.NOW < testStart + DELAY_PRRIOD); | |
Fail("時間内にメールを受け取れなかった"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment