Skip to content

Commit bdd5486

Browse files
authored
Change from scheduler.currentPriority() to scheduler.currentTask() (tc39#79)
Likely a typo.
1 parent b243400 commit bdd5486

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -447,7 +447,7 @@ const res = await scheduler.postTask(task, { priority: "background" });
447447
console.log(res);
448448

449449
async function task() {
450-
// Fetch remains background priority by referring to scheduler.currentPriority().
450+
// Fetch remains background priority by referring to scheduler.currentTask().
451451
const resp = await fetch("/hello");
452452
const text = await resp.text();
453453

0 commit comments

Comments
 (0)