Skip to content

Commit ad550db

Browse files
authored
Add missing return to README example (#47)
1 parent d324b57 commit ad550db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ const scheduler = {
359359
postTask(task, options) {
360360
// In practice, the task execution may be deferred.
361361
// Here we simply run the task immediately with the context.
362-
this.context.run({ priority: options.priority }, task);
362+
return this.context.run({ priority: options.priority }, task);
363363
},
364364
currentTask() {
365365
return this.context.get() ?? { priority: "default" };

0 commit comments

Comments
 (0)