[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [sc-users] Wait for fork



> On 16.12.2016, at 20:10, Tom Murphy <amindfv@xxxxxxxxx> wrote:
> 
> I'd like to do an action after a forked process finishes -- specifically after UnitTest.runAll finishes. Is there a way to do this without patching UnitTest.runAll?
> 
> Thanks!
> Tom
> 


UnitTest uses forkIfNeeded, so you can just embed it into another routine and do whatever after it has finished;

fork {
	UnitTest.runAll;
1.wait;
“hello”.postln
}

Attachment: signature.asc
Description: Message signed with OpenPGP using GPGMail