diff options
Diffstat (limited to 'test/files/run')
-rw-r--r-- | test/files/run/syncchannel.check | 1 | ||||
-rw-r--r-- | test/files/run/syncchannel.scala | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/test/files/run/syncchannel.check b/test/files/run/syncchannel.check new file mode 100644 index 0000000000..d81cc0710e --- /dev/null +++ b/test/files/run/syncchannel.check @@ -0,0 +1 @@ +42 diff --git a/test/files/run/syncchannel.scala b/test/files/run/syncchannel.scala new file mode 100644 index 0000000000..66ae47fd0a --- /dev/null +++ b/test/files/run/syncchannel.scala @@ -0,0 +1,6 @@ +object Test { + def main(args: Array[String]) { + val c = new scala.concurrent.SyncChannel[Int] + scala.concurrent.ops.par({ c.write(42) }, { println(c.read) }) + } +} |