github.com/tokio-rs/tokio-core
I/O primitives and event loop for async I/O in Rust
https://github.com/tokio-rs/tokio-core
fdba3f18370c67ec0c99c119157ad8e25be99fd9 authored over 4 years ago
8cd731fe469166dfba316a67987532b77d8dcea4 authored about 7 years ago
14d9bc9e7756a45d1e77ad9779640342361fddd9 authored over 7 years ago
92e2e68c2df161daacecdb557bd5e2f214024a91 authored over 7 years ago
25e6f5513cb3e4ed28971805945dcbecee833482 authored over 7 years ago
This is a backport of the fix provided by tokio-rs/tokio#250
Closes #317
33bdc2fc06789fcbd94d2c49dc473cf879794448 authored over 7 years ago9a39f31933a7d8c299f5746f41854fd53a2b9df0 authored over 7 years ago
This allows spawning new futures using `current_thread::spawn`.
a90d5b4dc85c6a03561a69fe8d7ab5bf92bc51b4 authored over 7 years ago
This patch correctly sets up the execution context for the future passed
to `Core::run`. This e...
Unless this is done before blocking, sending a command over the remote
channel will not be able...
4b88d0280ffae71a0b324d0984028ad4fbe5d1ff authored over 7 years ago
During the internal refactor to use the `tokio` crate,
`PollEvented::new` stopped using the spe...
Tokio reform was released as a separate crate (`tokio`). However, the
ecosystem has been split ...
f765c8f59760b8e899c81a649f5d70f9f7c50f6e authored over 7 years ago
Closes #296
71741f0d31e9ad4e7ed10851806fdda7e75a12d1 authored over 7 years agoIt was broken by b081e95
9400ffb0ee241e4ab007320389a95803b5d63db6 authored over 7 years agoe140dabed2d92c09707f1fa8d456febd9c6500be authored over 7 years ago
fbdf04f6049ad718493ae851284fda66cad35ce7 authored over 7 years ago
a3c4aec127ce0532b0a72ba5ee2eb3096c04f56a authored over 7 years ago
And allow the others to pass.
b081e9593f7d758bc055e29c445b2fd70252f260 authored over 7 years ago99fc38e0d652ba8d9a3437e70e4729c86edffc01 authored over 7 years ago
ce014943eca3b63c249c8b745dc70defbe30ee34 authored over 7 years ago
b395ccb6d955a8d4f56e7cc3bfdc0bfb28742f2c authored over 7 years ago
943cd860cb51dff519ba9cb0b115a2c8c4ba4f87 authored over 7 years ago
c45bbaa04ee2a9524976374c204b9568f991dceb authored over 7 years ago
963eee3bc7615accd7d8b97ad1ea24d697d36d36 authored over 7 years ago
b7ff130a0d82d26d3641e80cb7c5d1f8bbe5a397 authored over 7 years ago
bump futures to 0.1.16
701488e6a1020c5d8acc048c76e97a22d06fbe7c authored over 7 years agoexamples/tinydb.rs uses futures::prelude, which was added in 0.1.16
2764fc3de2b08dbee27f389b937acacb6ea43637 authored over 7 years agoHelps avoid spurious errors when testing.
Closes #277
1fe55b2b5527fdd32ca7b8895cb5764f6ac0958f authored over 7 years ago
This text historically was copied verbatim from rust-lang/rust's own README [1]
with the intenti...
Simplify UdpSocket futures
0c5c5dfafe997dc920f2ed1251d1fccbfb787c3f authored over 7 years ago3588f4d6adb670306f7d3a62217ce7683f363938 authored almost 8 years ago
Set Future types as must_use
ca8104ad690b91f8c9efaf628bfc0e144fa4b0d9 authored almost 8 years agoFix warnings
39173f8830fbe10cc46cb3c2ad5b53e27561f9e8 authored almost 8 years ago762406102161029b72874195939751a91c0c6186 authored almost 8 years ago
bd9a07f3ad7cd16fba3c4dd8258a991a88c7f82d authored almost 8 years ago
b4fa47bd09f8eb3925d2416b429f2c238855e731 authored almost 8 years ago
6b8ad4ff99aa8fe8c24ba677ccc093689613a166 authored almost 8 years ago
Derive Debug for Timeout and TimeoutToken
01198532c1e08f2ffca29f2c5e1c9a3642805dc1 authored almost 8 years agoe10de1e94e6af74a499883e66d472ef7c1d16e51 authored almost 8 years ago
335c3e73a43848d90be7aa1341cac793b0ea2789 authored almost 8 years ago
1c88b8f3362b94edd15d869dfa9bd3e55214d9ba authored almost 8 years ago
84916f66fddd931713d74282e0b4fb420853a8c6 authored almost 8 years ago
Unsure that we'll want to continue to expose this, stick to being conservative
for now.
These are unsound on Windows (unfortunately) and will soon be disallowed due to
carllerche/iovec#5
This example is intended to showcase sharing state between all connected clients
on a server, fo...
Fixed docs for Timeout::new and new_at
fbd0a9e5f1a5b425bf04bbda2f623d67e848fb0b authored almost 8 years agoThey no longer return futures, they return io::Result.
24dd856cfd8dafa291cd2d1d1ad31ddc83ef1b4f authored almost 8 years agodocs: fix some typos
e33155edb1ae67a91301f811cded1a9c92840b16 authored almost 8 years agode33e02c015ad4858820eaf30641a5b9731fd830 authored almost 8 years ago
Add {Interval,Timeout}::poll_at
317c11552ca57223bb2fb36e84d143383799bd2e authored almost 8 years agoConditionally call `consume_queue` on messages
fb05eb34af3f554c30f013fdc310353a2b58dec3 authored almost 8 years ago
Some contexts, like EC2, have `Instant::now` as a relatively expensive function
to call. To help...
The `consume_queue` function can be relatively slow for an empty queue (the fast
path) so optimi...
No need to punish projects that enable debug assertions for themselves
b320d9ee5894b9b006844b00d677ae42195fc739 authored almost 8 years agoAdds UdpSocket connect, send and recv methods
63d7be0368023d505cb14ffe69843da28709cbb8 authored almost 8 years ago7950b435052bd807895e50d9189b92c89ca7e259 authored almost 8 years ago
c80105fe1ec23efd91fbc4a35f2d345be5da4472 authored almost 8 years ago
8a43472b35e1807eb047ab01259adbabf0975346 authored almost 8 years ago
ecedea3404a04614da967c6a43a3f802573c9261 authored almost 8 years ago
UDP 0-length datagrams
2e5cd1640e9c93d6374a152554dedd212939aab8 authored almost 8 years ago85257e19af1a1fa0714a4c58297755f374cef949 authored almost 8 years ago
a611f6ec3043e63be340341cd97d17892ec6513c authored almost 8 years ago
Resolves #248, preventing UdpFramed from sending 0-length datagrams.
Also, adds 0-length tests f...
5e4cfdfab114e9c1913a98b40746727b4d2cf5a4 authored almost 8 years ago
Should make this more resilient to rounding errors on Windows
e0b751b0137fb1cf572e07fa6463f5f984f7e9a7 authored almost 8 years ago
Hopefully being relatively illustrative in how a bare-bones non-production-ready
server can be s...
a4e947fba0c50d60fcd01e9d3f6a9cfe990e251d authored almost 8 years ago
7b94cf307d6562a8f31c5d764122e39cda080842 authored almost 8 years ago
TokenTimeout: add doc around new panic
645ae7051d08221cbd44ad1211eac8af2f0b6c67 authored almost 8 years ago
My slab bump in #246 added a potential new panic in Core's Inner's
`cancel_timeout`.
Thankfully...
b9dc4c900864ce3305828279128ee7162cf520eb authored almost 8 years agobump slab to 0.4.0
e30b18214797e64674fdb5f167fb094c5b63c31d authored almost 8 years agoMakes some of the code easier to read.
fce59de79eb87a7da52522ed8b0766773fcc90b7 authored almost 8 years agoPrefer ErrorKind::WouldBlock
04eba12d433891681497bf56af2410699d0c4509 authored almost 8 years agof12b761b779f3008d0651651489052500074245d authored almost 8 years ago
e8617ea1fc0bbe8d06b785d8ce68aa2663ede2d7 authored almost 8 years ago
Expose only_v6 option for UDP sockets
77d9a1aa4f536bbf7aa0217cc779be9508c2b7b4 authored almost 8 years agoupdate example in doc comment
6090e221357bdc2c29433fe0fe8a3b91f423b84c authored almost 8 years agoe5fdccfff04e996a05faf11e3d0ef18a1651915e authored almost 8 years ago
[fuchsia] Config changes to build on Fuchsia
fbd257f2bde82ecdd9eb6c2bcd747798f3e6cd69 authored almost 8 years ago
This patch disables various Unix-specific platform features that are
not enabled on Fuchsia. It ...
77b0ee0a47d48d8d67a50310acd69808f3b25553 authored almost 8 years ago
Add documentation about panics to {Handle, Remote}::spawn{fn}
2a71ef8b13d0dcf0811ea4d3810f2f13b035d49a authored about 8 years agod03c736b4c7d205856a4f64dc5640f8a7c76d9fa authored about 8 years ago
8c297a6208520de71629178a37a32fde5340f795 authored about 8 years ago
typo fix in io_token's comment section
8fba4858ac25254908b11a13a976332e6b0fd9f8 authored about 8 years ago5fe7b4225fbbc74e35052a3b9b997504323d0432 authored about 8 years ago
c13e7f35337ca37ae3f4207e861375fc250f1c05 authored about 8 years ago
Add a method to reset Timeout.
2653a2195c18696a207b1e7369a684f77a7e2e2f authored about 8 years ago6fb62d32322a5d09a003757d4223597e0cc34534 authored about 8 years ago
8004900ce94474498f2f1b5136a16499bd6e28f6 authored about 8 years ago
make TcpStream::flush() a noop
8379b87c53dbd2dd0a836fa1d594dfaa2f97ed56 authored about 8 years agobf93b79120cad43877ab8b1cc104d5fbf07fd374 authored about 8 years ago
bump env_logger to 0.4
d85f54dffbbbd418843d2af2bf04cfc4bd97c411 authored about 8 years agoddb244429e694f4f63e65c2b33d789229480f234 authored about 8 years ago
POSIX AIO support, try 2
c65c33176748d104b4f2ae6a9c8f2cacf2f870bb authored about 8 years ago
* Combine the FreeBSD/Dragonfly platform with the other Unix platform
* Remove the Windows platf...
562aa65c997a1c228f439e616411d9a08e915f3c authored about 8 years ago
TCP reactor benchmarks
74670f287e07c631163545f6be58ce1bec7b7d3a authored about 8 years ago