-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #181 from nbuilding/develop
N `v1.3.0`
- Loading branch information
Showing
41 changed files
with
1,792 additions
and
306 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,2 +1,27 @@ | ||
import times | ||
|
||
let test1 = [] -> cmd[str] { | ||
let _ = times.sleep(1000)! | ||
print("1s") | ||
return "one second later" | ||
} | ||
|
||
let test2 = [] -> cmd[str] { | ||
let _ = times.sleep(2000)! | ||
print("2s") | ||
return "two seconds later" | ||
} | ||
|
||
let test = [] -> cmd[()] { | ||
let test1Done = parallel(test1())! | ||
let test2Done = parallel(test2())! | ||
print("0s") | ||
|
||
let test2Result = test2Done! | ||
let test1Result = test1Done! | ||
let test1Result2 = test1Done! | ||
|
||
print({ test2Result: test2Result; test1Result: test1Result; test1Result2: test1Result2 }) | ||
} | ||
|
||
let pub main = test() |
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
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
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.