-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
63 additions
and
91 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,4 @@ | ||
|
||
mod D:\code\rs\tst\target\debug\tstlib.dll> m; | ||
let delay = m-.async_delay; | ||
//mod D:\code\rs\tst\target\debug\tstlib.dll> m; | ||
|
||
// 未使用fall, 因此不会阻塞 | ||
log(delay(233, 2000)); // 打印 Planet { Builtin } | ||
|
||
// 使用fall | ||
log(delay(233, 1000).fall()); // 1秒后打印233 | ||
|
||
// 由于未使用wait_inc, 第一个delay还未完成时程序就退出了 | ||
log(18446744073709551615u.int); |
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
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
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