From 19db7732e6ef2b99a5744b33914a74676868eff8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6nke=20Ludwig?= Date: Thu, 20 Jul 2017 13:36:27 +0200 Subject: [PATCH] Add nothrow annotations. --- source/vibe/core/task.d | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/vibe/core/task.d b/source/vibe/core/task.d index 437d50c..e146d76 100644 --- a/source/vibe/core/task.d +++ b/source/vibe/core/task.d @@ -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");