Skip to content

Commit e7212c0

Browse files
author
Conor
committed
Revert "TMP no bind"
This reverts commit 3b9bd7a.
1 parent d10808f commit e7212c0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/core/schedule.cxx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module;
22
#include "libfork/__impl/assume.hpp"
33
#include "libfork/__impl/compiler.hpp"
44
#include "libfork/__impl/exception.hpp"
5-
#include <cstddef>
65
export module libfork.core:schedule;
76

87
import std;
@@ -78,7 +77,7 @@ schedule(Sch &&sch, Fn &&fn, Args &&...args) -> schedule_result_t<Fn, context_t<
7877

7978
task.promise->frame.kind = category::root;
8079
task.promise->frame.parent = nullptr;
81-
task.promise->frame.cancel = nullptr;
80+
task.promise->frame.cancel = &state->m_stop;
8281

8382
LF_TRY {
8483
sch.post(sched_handle<context_type>{key(), &task.promise->frame});

0 commit comments

Comments
 (0)