Problems with network stream
See original GitHub issueHello. I need some help. My english is not good, sorry me Im trying to realise tcp client-server messaging with Hopac. I am using IVar for event system. Is this fine or? Anyway it is a not main question.
When i creating a client, i create and attach IVar to him. In concurrent job i am waiting for this IVar (IVar.read), and then client can be continue work. Then, when cliens receiving a connect response
packet im trying to IVar.fill attached IVar. Looks pretty simple, but something goes wrong.
Here is code: https://gist.github.com/nanodesu88/15199957bb2cc99b82c6f12102426d88#file-main-fs
and aq.connectVar |> IVar.read does not resolving. But if i am moving last line to start of job like this:
https://gist.github.com/nanodesu88/15199957bb2cc99b82c6f12102426d88#file-fixed-fs
reading a IVar is completed is concurrent job. Looks like networkstream.read is blocking some job, but i does not know how to jobs works inside and can’t imagine what can be wrong
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (5 by maintainers)
Yeah, no worries, but you should be considering the async-methods to start with, http://tomasp.net/blog/async-compilation-internals.aspx/ — like this, but with Job.fromAsync.
Haha, well, I think your english is good enough to understand, so I doubt that would be a problem. =) If you’re interested; henrik at haf.se is my e-mail.