terminate

public final Unit terminate()

Stops the main loop.

It is safe to call this function from another other background thread.