From b5889ce1b653db56995d14f23eeeb046ca5fb958 Mon Sep 17 00:00:00 2001 From: dineug Date: Thu, 8 Feb 2024 13:31:04 +0900 Subject: [PATCH] fix: readme --- packages/go/README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/packages/go/README.md b/packages/go/README.md index 838e309..ad55168 100644 --- a/packages/go/README.md +++ b/packages/go/README.md @@ -194,7 +194,7 @@ const cancel = promise => { const cancel = Reflect.get(promise, ATTACH_CANCEL); cancel?.(); } - return go(() => new Promise((resolve, reject) => reject(CANCEL))); + return go(() => new Promise((resolve, reject) => reject(CANCEL))); }; ``` @@ -326,8 +326,8 @@ const race = record => isPromise(entry) ? entry.then(toResolve(key)).catch(reject) : isPromiseLike(entry) - ? entry.then(toResolve(key)) - : toResolve(key)(entry); + ? entry.then(toResolve(key)) + : toResolve(key)(entry); } }); ``` @@ -443,10 +443,10 @@ throttle(ch, function* () {}, 1000); #### low-level operator -```js +```ts type ThrottleConfig = Partial<{ - leading: boolean, - trailing: boolean, + leading: boolean; + trailing: boolean; }>; const defaultConfig: Required = {