Skip to content

Commit c5530ee

Browse files
EddieEddie
authored andcommitted
chore: source for multitask and multijoin
1 parent 5e873df commit c5530ee

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

programs/multijoin.source

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
threadOne = multitask "com.example.MultitaskRunnable" ("thread-one")
2+
threadTwo = multitask "com.example.MultitaskRunnable" ("thread-two")
3+
4+
multijoin threadOne threadTwo

programs/multitask-inline.source

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
multitask {
2+
print "Inline thread!"
3+
}

programs/multitask.source

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,2 @@
1-
multitask "com/example/MultitaskDemo"
2-
print "Hello word!"
3-
4-
# Idea 1:
5-
multitask {
6-
print "Inline thread!"
7-
}
8-
9-
# Idea 2:
10-
# thread = multitask "com.example.MultitaskDemo" (firstConstructorArgument)
11-
12-
# Idea 3:
13-
# multijoin(25s) threadOne threadTwo
1+
multitask "com.example.MultitaskRunnable"
2+
print "Hello"

0 commit comments

Comments
 (0)