From a253cb56c2c93f59f6b1abb215885540db8953fc Mon Sep 17 00:00:00 2001 From: Ayu Ishii <48255136+ayuishii@users.noreply.github.com> Date: Wed, 15 Mar 2023 21:38:47 -0700 Subject: [PATCH] Use queue a task (#81) * Use [=queue a task=] * Additional changes --- index.bs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/index.bs b/index.bs index b877b05..0637b74 100644 --- a/index.bs +++ b/index.bs @@ -252,7 +252,7 @@ The keys() method steps are: 1. If |bucket| is non-null, [=list/append=] |key| to |keys|. -1. [=/Resolve=] |p| with |keys|. +1. [=Queue a task=] to [=/resolve=] |p| with |keys|. 1. Return |p|. @@ -301,9 +301,9 @@ The persist() method steps are: 1. Let |bucket| be [=this=]'s [=/storage bucket=]. - 1. If |bucket|'s [=storage bucket/removed=] flag is true, [=reject=] |p| with {{InvalidStateError}}. + 1. If |bucket|'s [=storage bucket/removed=] flag is true, [=queue a task=] to [=reject=] |p| with {{InvalidStateError}}. - 1. If |bucket|'s [=bucket mode=] is `"persistent"`, [=/resolve=] |p| with true. + 1. If |bucket|'s [=bucket mode=] is `"persistent"`, [=queue a task=] to [=/resolve=] |p| with true. 1. Otherwise, @@ -311,9 +311,9 @@ The persist() method steps are: 1. Let |permission| be the result of [=getting the current permission state=] with `"persistent-storage"` and |environment|. - 1. If |permission| is "{{PermissionState/granted}}", then set |bucket|'s [=bucket mode=] to `"persistent"` and [=/resolve=] |p| with true. + 1. If |permission| is "{{PermissionState/granted}}", then set |bucket|'s [=bucket mode=] to `"persistent"` and [=queue a task=] to [=/resolve=] |p| with true. - 1. Otherwise, [=/resolve=] |p| with false. + 1. Otherwise, [=queue a task=] to [=/resolve=] |p| with false. 1. Return |p|. @@ -327,13 +327,13 @@ The persisted() method steps are: 1. Let |bucket| be [=this=]'s [=/storage bucket=]. -1. If |bucket|'s [=storage bucket/removed=] flag is true, then [=reject=] |p| with an {{InvalidStateError}}. +1. If |bucket|'s [=storage bucket/removed=] flag is true, then [=queue a task=] to [=reject=] |p| with an {{InvalidStateError}}. 1. Otherwise, - 1. If |bucket|'s [=bucket mode=] is `"persistent"`, then [=/resolve=] |p| with true. + 1. If |bucket|'s [=bucket mode=] is `"persistent"`, then [=queue a task=] to [=/resolve=] |p| with true. - 1. Otherwise, [=/resolve=] |p| with false. + 1. Otherwise, [=queue a task=] to [=/resolve=] |p| with false. 1. Return |p|. @@ -402,9 +402,9 @@ The durability() method steps are: 1. Let |bucket| be [=this=]'s [=/storage bucket=]. -1. If |bucket|'s [=storage bucket/removed=] flag is true, [=reject=] |p| with an {{InvalidStateError}}. +1. If |bucket|'s [=storage bucket/removed=] flag is true, [=queue a task=] to [=reject=] |p| with an {{InvalidStateError}}. -1. Otherwise, [=/resolve=] |p| with |bucket|'s [=StorageBucket/durability value=]. +1. Otherwise, [=queue a task=] to [=/resolve=] |p| with |bucket|'s [=StorageBucket/durability value=]. 1. Return |p|. @@ -442,9 +442,9 @@ The setExpires(|expires|) method steps are 1. Let |bucket| be [=this=]'s [=/storage bucket=]. -1. If |bucket|'s [=storage bucket/removed=] flag is true, [=reject=] |p| with an {{InvalidStateError}}. +1. If |bucket|'s [=storage bucket/removed=] flag is true, [=queue a task=] to [=reject=] |p| with an {{InvalidStateError}}. -1. Otherwise, set |bucket|'s [=StorageBucket/expiration time=] to |expires| milliseconds after the [=Unix epoch=] and [=/resolve=] |p|. +1. Otherwise, set |bucket|'s [=StorageBucket/expiration time=] to |expires| milliseconds after the [=Unix epoch=] and [=queue a task=] to [=/resolve=] |p|. 1. Return |p|. @@ -458,9 +458,9 @@ The expires() method steps are: 1. Let |bucket| be [=this=]'s [=/storage bucket=]. -1. If |bucket|'s [=storage bucket/removed=] flag is true, [=reject=] |p| with an {{InvalidStateError}}. +1. If |bucket|'s [=storage bucket/removed=] flag is true, [=queue a task=] to [=reject=] |p| with an {{InvalidStateError}}. -1. Otherwise, [=/resolve=] |p| with |bucket|'s [=StorageBucket/expiration time=]. +1. Otherwise, [=queue a task=] to [=/resolve=] |p| with |bucket|'s [=StorageBucket/expiration time=]. 1. Return |p|.