We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
connectTo
1 parent 0cde9a9 commit d30eebbCopy full SHA for d30eebb
1 file changed
README.md
@@ -148,12 +148,13 @@ like [neverthrow](https://github.com/supermacro/neverthrow) 's `ResultAsync.from
148
the library's internal dispatchers rather than your business logic.
149
150
```ts
151
+// location: project/mcp/client.ts
152
import {ResultAsync} from 'neverthrow';
153
import {MCPError} from "./error";
154
-function connectToDatabase(url: string) {
155
+function connectTo(url: string) {
156
return ResultAsync.fromPromise(
- fetch(url),
157
+ client.connect(url),
158
(_err) => {
159
// 🚨 THE ISSUE:
160
// When this callback is executed, the physical execution flow
0 commit comments