Skip to content

Commit 8aad3a2

Browse files
committed
Update docs
1 parent a88a9be commit 8aad3a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -238,19 +238,19 @@ timeout = 10 * time.Millisecond
238238

239239
// Normal cases
240240
// Result would be 10
241-
actual, _ = Maybe.Just(AskNewGenerics(1).AskOnce(actorRoot, nil)).ToInt()
241+
actual, _ = Maybe.Just(Ask.New(1).AskOnce(actorRoot, nil)).ToInt()
242242
// Ask with Timeout
243243
// Result would be 20
244-
actual, _ = Maybe.Just(AskNewGenerics(2).AskOnce(actorRoot, &timeout)).ToInt()
244+
actual, _ = Maybe.Just(Ask.New(2).AskOnce(actorRoot, &timeout)).ToInt()
245245
// Ask channel
246246
// Result would be 30
247-
ch := AskNewGenerics(3).AskChannel(actorRoot)
247+
ch := Ask.New(3).AskChannel(actorRoot)
248248
actual, _ = Maybe.Just(<-*ch).ToInt()
249249
close(*ch)
250250

251251
// Timeout cases
252252
// Result would be 0 (zero value, timeout)
253-
actual, _ = Maybe.Just(AskNewGenerics(-1).AskOnce(actorRoot, &timeout)).ToInt()
253+
actual, _ = Maybe.Just(Ask.New(-1).AskOnce(actorRoot, &timeout)).ToInt()
254254
```
255255

256256
## Compose

0 commit comments

Comments
 (0)