Skip to content

Commit

Permalink
fix: readme
Browse files Browse the repository at this point in the history
  • Loading branch information
dineug committed Feb 8, 2024
1 parent bc2dd9d commit b5889ce
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/go/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ const cancel = promise => {
const cancel = Reflect.get(promise, ATTACH_CANCEL);
cancel?.();
}
return go(() => new Promise<void>((resolve, reject) => reject(CANCEL)));
return go(() => new Promise((resolve, reject) => reject(CANCEL)));
};
```
Expand Down Expand Up @@ -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);
}
});
```
Expand Down Expand Up @@ -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<ThrottleConfig> = {
Expand Down

0 comments on commit b5889ce

Please sign in to comment.