You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a need to provide my rest server methods that can be used to manage a remote process. I wish to do this in a way that leverages async programming. At first I had been thinking of spawning a tokio task, but I'm now feeling that was a bad idea, and that I should instead look towards launching a actix actor.
Is there a good example of how to do this I can review? How for example do I get the System struct that actix-web is using and make sure I'm being a good citizen and avoid tossing a wrench into the plumbing that actix-web depends upon?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a need to provide my rest server methods that can be used to manage a remote process. I wish to do this in a way that leverages async programming. At first I had been thinking of spawning a tokio task, but I'm now feeling that was a bad idea, and that I should instead look towards launching a actix actor.
Is there a good example of how to do this I can review? How for example do I get the System struct that actix-web is using and make sure I'm being a good citizen and avoid tossing a wrench into the plumbing that actix-web depends upon?
Thank you very much for any advice on this topic.
Beta Was this translation helpful? Give feedback.
All reactions