Commit 4c136ff
Add Sequencers to actor Instance (#1299)
Summary:
We want to move sequence assignment to the client side, and actor Instance is a good place for that, since:
1. we can get it through `context::Actor`;
2. there is ongoing effort to deprecate `cap::CanSend` with `context::Actor`. so `context::Actor` will be accessible in client's message sending callsites.
This diff:
1. adds a `Struct Sequencers` which encapsulate the assignment logic.
2. adds a `fn seq_send` method to `ActorRef` show how it is used by the client.
Differential Revision: D829830041 parent 6d22ad1 commit 4c136ff
4 files changed
+331
-79
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| |||
0 commit comments