Add nothrow annotations.

This commit is contained in:
Sönke Ludwig 2017-07-20 13:36:27 +02:00
parent 536fa09780
commit 19db7732e6

View file

@ -809,7 +809,7 @@ package struct TaskScheduler {
Returns `true` $(I iff) there are more tasks left to process.
*/
ScheduleStatus schedule()
{
nothrow {
if (m_taskQueue.empty)
return ScheduleStatus.idle;
@ -846,7 +846,7 @@ package struct TaskScheduler {
/// Resumes execution of a yielded task.
private void resumeTask(Task t)
{
nothrow {
import std.encoding : sanitize;
logTrace("task fiber resume");