Skip to content
This repository has been archived by the owner on Nov 9, 2019. It is now read-only.

Network and spawning actors #14

Merged
merged 22 commits into from
Jul 13, 2019
Merged

Network and spawning actors #14

merged 22 commits into from
Jul 13, 2019

Conversation

r3v2d0g
Copy link
Contributor

@r3v2d0g r3v2d0g commented Jul 8, 2019

Blocked by rust-lang/rust#62574 until the next nightly release.

Also moved `TcpClient`, `TcpServer` and `UdpSocket`
from `Runtime` to a new trait called `NetworkManager`,
replacing them, in `Runtime`, with this new trait.
@r3v2d0g r3v2d0g added this to the v0.1.0-alpha.4 milestone Jul 8, 2019
@r3v2d0g r3v2d0g self-assigned this Jul 8, 2019
A receiver will have only one spot in the channel's wakers list
and will update it when a new waker is available instead of pushing
the registering the new one. This way, the channel wont try to
wake dead wakers.
Also made the `AsyncRead` forwarding support better by, for
example, adding a `map_err` closure to handle the case where
an error is returned by `AsyncRead::poll_read` so that a
different actor message can be returned.
- If the `Spawned` linked to an actor was dropped, the actor
  coudln't notify the runtime that it stopped.
@r3v2d0g r3v2d0g merged commit b63440c into master Jul 13, 2019
@r3v2d0g r3v2d0g deleted the net-and-spawn branch July 13, 2019 14:24
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant