File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -243,19 +243,19 @@ timeout = 10 * time.Millisecond
243243
244244// Normal cases
245245// Result would be 10
246- actual, _ = Maybe .Just (AskNewGenerics (1 ).AskOnce (actorRoot, nil )).ToInt ()
246+ actual, _ = Maybe .Just (Ask. New (1 ).AskOnce (actorRoot, nil )).ToInt ()
247247// Ask with Timeout
248248// Result would be 20
249- actual, _ = Maybe .Just (AskNewGenerics (2 ).AskOnce (actorRoot, &timeout)).ToInt ()
249+ actual, _ = Maybe .Just (Ask. New (2 ).AskOnce (actorRoot, &timeout)).ToInt ()
250250// Ask channel
251251// Result would be 30
252- ch := AskNewGenerics (3 ).AskChannel (actorRoot)
252+ ch := Ask . New (3 ).AskChannel (actorRoot)
253253actual, _ = Maybe .Just (<- *ch).ToInt ()
254254close (*ch)
255255
256256// Timeout cases
257257// Result would be 0 (zero value, timeout)
258- actual, _ = Maybe .Just (AskNewGenerics (-1 ).AskOnce (actorRoot, &timeout)).ToInt ()
258+ actual, _ = Maybe .Just (Ask. New (-1 ).AskOnce (actorRoot, &timeout)).ToInt ()
259259```
260260
261261## Compose
You can’t perform that action at this time.
0 commit comments