RosettaCodeData/Task/Fork/Slate/fork.slate

7 lines
246 B
Text
Raw Permalink Normal View History

2013-04-10 22:43:41 -07:00
p@(Process traits) forkAndDo: b
[| ret |
(ret := lobby cloneSystem)
first ifTrue: [p pipes addLast: ret second. ret second]
ifFalse: [[p pipes clear. p pipes addLast: ret second. b applyWith: ret second] ensure: [lobby quit]]
].