Sliced Processes Using Process_Slicer.Lua


For a project I am currently implementing I am using the functionality provided by process_slicer.lua to avoid hanging the main Renoise program.

This works well and doesn’t cause any issues.

However, the main function (which starts the slice subprocess) continues execution and completes before the sliced process.

Is there a way to make this function ‘pause’ until the sliced process completes? I have tried adding callbacks to the sliced function, but the calling function ends up hanging in a loop waiting for the callback to execute.

Any ideas?

Thanks for linking this.

It is very similar to my implementation. Am I okay to re-use this code in my tool to avoid reduplication?