Skip to content

Commit

Permalink
fix(docs): relaced async function with fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
koopiehoop committed Sep 23, 2023
1 parent 343c3d5 commit 0c145d8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions docs/errors/E0714.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,11 @@ class C {
}

async getValueAsync() {
// Perform asynchronous operations here
return await asyncFuctnion();
return await fetch(this._value);
}

async setValueAsync(newValue) {
// Perform asynchronous operations here
await asyncFuctnion();
this._value = newValue;
this._value = await fetch(newValue);
}
}
```

0 comments on commit 0c145d8

Please sign in to comment.