Skip to content

Commit 8565eaa

Browse files
Fix documentation flaw for "Forward" (#5078)
Closes #4973
1 parent 90afdb7 commit 8565eaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/articles/actors/receive-actor-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,10 +405,10 @@ For more information on Tasks, check out the [MSDN documentation](https://msdn.m
405405
> When using task callbacks inside actors, you need to carefully avoid closing over the containing actor’s reference, i.e. do not call methods or access mutable state on the enclosing actor from within the callback. This would break the actor encapsulation and may introduce synchronization bugs and race conditions because the callback will be scheduled concurrently to the enclosing actor. Unfortunately there is not yet a way to detect these illegal accesses at compile time.
406406
407407
### Forward message
408-
You can forward a message from one actor to another. This means that the original sender address/reference is maintained even though the message is going through a 'mediator'. This can be useful when writing actors that work as routers, load-balancers, replicators etc. You need to pass along your context variable as well.
408+
You can forward a message from one actor to another. This means that the original sender address/reference is maintained even though the message is going through a 'mediator'. This can be useful when writing actors that work as routers, load-balancers, replicators etc.
409409

410410
```csharp
411-
target.Forward(result, Context);
411+
target.Forward(result);
412412
```
413413

414414
## Receive messages

0 commit comments

Comments
 (0)