Skip to content

Commit

Permalink
change project name
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariaszzzhc committed Aug 12, 2023
1 parent 9702bca commit ca612be
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ this project currently is a port of deno std async libs for nodejs
## delay

```typescript
import { delay } from "async-helpers";
import { delay } from "@morph/asyncs";

const delayedPromise = delay(100);
const result = await delayedPromise;
Expand All @@ -16,7 +16,7 @@ const result = await delayedPromise;
## deferred

```typescript
import { deferred } from "async-helpers";
import { deferred } from "@morph/asyncs";

const p = deferred<number>();
// ...
Expand All @@ -26,7 +26,7 @@ p.resolve(42);
## abortable

```typescript
import { abortable, delay } from "async-helpers";
import { abortable, delay } from "@morph/asyncs";

const p = delay(1000);
const c = new AbortController();
Expand All @@ -39,7 +39,7 @@ await abortable(p, c.signal);
## deadline

```typescript
import { deadline, delay } from "async-helpers";
import { deadline, delay } from "@morph/asyncs";

const delayedPromise = delay(1000);
// Below throws `DeadlineError` after 10 ms
Expand All @@ -49,7 +49,7 @@ const result = await deadline(delayedPromise, 10);
## MuxAsyncIterator

```typescript
import { MuxAsyncIterator } from "async-helpers";
import { MuxAsyncIterator } from "@morph/asyncs";

async function* gen123(): AsyncIterableIterator<number> {
yield 1;
Expand All @@ -74,7 +74,7 @@ for await (const value of mux) {
## retry

```typescript
import { retry } from "async-helpers";
import { retry } from "@morph/asyncs";
const req = async () => {
// some function that throws sometimes
};
Expand All @@ -90,7 +90,7 @@ const retryPromise = await retry(req, {
```

```typescript
import { retry } from "async-helpers";
import { retry } from "@morph/asyncs";
const req = async () => {
// some function that throws sometimes
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "async-helpers",
"name": "@morph/async",
"version": "0.1.0",
"description": "async helper functions for nodejs",
"main": "dist/index.js",
Expand Down

0 comments on commit ca612be

Please sign in to comment.