Comments (9)
I think add_feature
is meant to be spawn
. That said I cannot figure out what it is suppose to do.
from actix.
sorry, I am a bit busy at the moment. I will fix doc in few hours
from actix.
@fafhrd91 I can take on updating docs for StreamHandler
since I was using it recently.
I think add_stream
should refer to StreamHandler
and there we can add all needed information on how it should work
from actix.
@DoumanAsh sure
from actix.
No worries.
In meantime is there a way of blocking stream I don't see? I can implement it myself but IMHO it looks kind of awkward.
from actix.
You can just create timeout future and wait for it. While waiting actor is paused
from actix.
@fafhrd91 I know but I don't want to pause actor - I want to pause the stream (or rather processing of stream). Given your comment I'm assuming there isn't such thing despite quoted comment suggesting otherwise.
This gets slightly off-topic but the comment suggested there was some way I could block stream. I'm assuming it happens with add_message_stream
when I return a Future but it doesn't seem to do so (my underlying problem is that I want two websocket threads to communicate. However if I wait and they both try to send messages they will deadlock).
from actix.
@uzytkownik You can move to gitter chat for off-topic. But note that even if you want to block only stream, you're likely to block everything else by it too unless you convert it to ActorFuture
from actix.
updated
from actix.
Related Issues (20)
- Panic in Arbiter thread HOT 1
- Fair handling of async sub-tasks in ContextFut
- async and sync clash in `started` trying to `send` to other actor HOT 3
- Implement PartialEq and Eq for WeakAddr
- unable to retrieve actor addresses from registry outside of actor context HOT 1
- Question: How to wait for an event on actor startup? HOT 1
- Add discord link instead of gitter HOT 1
- "there is no reactor running" panic when system is quickly dropped HOT 2
- Actor stops receiving messages after filling the mailbox HOT 4
- Payload reached size limit. HOT 1
- Conditional inclusion of tokio-net and tokio-signal for targets that do not support them. HOT 3
- "PAGE NOT FOUND" when open the book
- Readme User Guide link is broken HOT 1
- AsyncContext::wait() is not actually waiting HOT 2
- Consider updating `actix-derive` to use `syn@2` HOT 2
- Docs: Broken links in README.md (minor issue)
- Hey,all,I have one question. HOT 2
- Question: Awaiting actor responses in message handler HOT 1
- Build fail due to "ahash v0.7.7" error[E0635]: unknown feature stdsimd HOT 1
- Fine-tune the Ordering for num_senders HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from actix.