From eb2a8849bac939092af7ec5002c467a1af9075e2 Mon Sep 17 00:00:00 2001 From: Austin Sullivan Date: Thu, 2 Mar 2023 00:22:37 +0000 Subject: [PATCH] queue a task to enqueue steps --- index.bs | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/index.bs b/index.bs index 9378a0f..7a93fd5 100644 --- a/index.bs +++ b/index.bs @@ -107,18 +107,18 @@ To take a [=file entry/lock=] with a |value| of 1. If |value| is "`exclusive`": 1. If |lock| is "`open`": 1. Set lock to "`taken-exclusive`". - 1. Return a value of "`success`". + 1. Return "`success`". 1. If |value| is "`shared`": 1. If |lock| is "`open`": 1. Set |lock| to "`taken-shared`". 1. Set |count| to 1. - 1. Return a value of "`success`". + 1. Return "`success`". 1. Otherwise, if |lock| is "`taken-shared`": 1. Increase |count| by 1. - 1. Return a value of "`success`". -1. Return a value of "`failure`". + 1. Return "`success`". +1. Return "`failure`". -Note: These steps must be run on the [=file system queue=]. +Note: These steps have to be run on the [=file system queue=]. @@ -133,7 +133,7 @@ To release a [=file entry/lock=] on a given 1. If |count| is 0, set |lock| to "`open`". 1. Otherwise, set |lock| to "`open`". -Note: These steps must be run on the [=file system queue=]. +Note: These steps have to be run on the [=file system queue=]. @@ -504,7 +504,8 @@ The createWritable(|options|) method 1. Let |result| be [=a new promise=]. 1. Let |locator| be [=this=]'s [=FileSystemHandle/locator=]. 1. Let |realm| be [=this=]'s [=relevant Realm=]. -1. [=Enqueue the following steps=] to the [=file system queue=]: +1. [=Queue a storage task=] with [=this=]'s [=relevant global object=] to + [=enqueue the following steps=] to the [=file system queue=]: 1. Let |entry| be the result of [=locating an entry=] given |locator|. 1. Let |access| be the result of running |entry|'s [=file system entry/request access=] given "`readwrite`".