Am 07.01.2016 um 20:10 schrieb Oleh:

Hello.
Can someone show how to terminate a Task created with runTask? Currently, it's not implemented and throws an exception:

Task terminated with unhandled exception: Not implemented

Thank you in advance.

You should always use either a custom mechanism to shut down the task,
or Task.interrupt(), which will cause an exception to be thrown within
the task and in turn causes a proper cleanup of RAII values and the like.

Just terminating a task is likely to cause all kinds of program state
corruption and should only be done in cases where this has been very
thoroughly investigated. It's actually likely that Task.terminate()
will be removed altogether. In cases where this functionality is really
desired, it could still be achieved with task.fiber.reset().