Add nothrow annotations.
This commit is contained in:
parent
536fa09780
commit
19db7732e6
|
@ -809,7 +809,7 @@ package struct TaskScheduler {
|
||||||
Returns `true` $(I iff) there are more tasks left to process.
|
Returns `true` $(I iff) there are more tasks left to process.
|
||||||
*/
|
*/
|
||||||
ScheduleStatus schedule()
|
ScheduleStatus schedule()
|
||||||
{
|
nothrow {
|
||||||
if (m_taskQueue.empty)
|
if (m_taskQueue.empty)
|
||||||
return ScheduleStatus.idle;
|
return ScheduleStatus.idle;
|
||||||
|
|
||||||
|
@ -846,7 +846,7 @@ package struct TaskScheduler {
|
||||||
|
|
||||||
/// Resumes execution of a yielded task.
|
/// Resumes execution of a yielded task.
|
||||||
private void resumeTask(Task t)
|
private void resumeTask(Task t)
|
||||||
{
|
nothrow {
|
||||||
import std.encoding : sanitize;
|
import std.encoding : sanitize;
|
||||||
|
|
||||||
logTrace("task fiber resume");
|
logTrace("task fiber resume");
|
||||||
|
|
Loading…
Reference in a new issue