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
* Move connections-clone down a bit
* Use `Ok` and `Err` as IntoFuture
Implement `tokio_core::reactor::Interval`
62514fc40b6b20d75b0e7626e3bd1126993a47cc authored almost 9 years agob1d02eb598ac2359e1aea4b69b05e5c6dfbc9453 authored almost 9 years ago
The other read futures (read_exact, read_until, etc.) all expose their
concrete future types so ...
* Send source address of message in addition to the message to connected clients.
* Move `spawn_...
411caa786d3e1284544a9dc8100aad720c4d340e authored almost 9 years ago
* Remove unnecessary clone
* Improve rightward drift
* Remove unnecessary lazy future
* Improve ...
fixed typo in split.rs
a99b2529e0ce0b4f623bc405d9e7519ac21dcc0b authored almost 9 years agoa94be1bca918ccda582c45c52f8bd96fae92bdd8 authored almost 9 years ago
0205b855d0794d882959e9147890e53c4ca6d2fe authored almost 9 years ago
doc(read): Add number of bytes read to doc
e32115b1b42b7feaccf46da248946af0ec79af35 authored almost 9 years agodoc(read_until): Fix typo in doc
37879bd91148a11dfdfa87a2825778c992d635e7 authored almost 9 years agob0033eb463803d5b97de2e3f6d50f5682b24213b authored almost 9 years ago
254523730973b3938496fe1a70edbdd7b62c2aea authored almost 9 years ago
feat(io): Add `read_until`
f019f5f5bbac180dbe0f4828e70ad5c75a0e6a3e authored almost 9 years agod2440a40593ae72762d7b2f18a50ca9f9b124d96 authored almost 9 years ago
ce8a9d460edb24088b88249d907588469a4d00d9 authored almost 9 years ago
Add `read` free function to read some bytes
866dad2e85646dcdfae21782d2567599f88a94f6 authored almost 9 years agof69f748470296f9c3fce66fcebb9456466a1c540 authored almost 9 years ago
Also `try_nb!` is used.
42bbe86cb62095a373c485717e6669e8ce15f1b5 authored almost 9 years ago4b3472ceae4b39a760e32a70f3d73b5e7aeabc0e authored almost 9 years ago
doc(spawn_fn): Fix typo
e92d4bf52b0246146fdc63619a01dd6cb7cd59cd authored almost 9 years agof62d1ddc8d9c90d6173ef4587712e8cb83cf44f6 authored almost 9 years ago
Acts as a convenience to avoid `futures::lazy`.
Closes #40
1d40bf14f7d04ec6c1d1a8b55692f49de51a0caa authored almost 9 years agoOriginal intention was that it didn't, but nowadays it does.
Closes #44
c2e80ebb3001c95cc383e8ae354c6a00ff61a315 authored almost 9 years agoFix documentation typos
181dcdd9ead2e44856c7e641df2da38c40e5f059 authored almost 9 years ago326537b861b67343ac1bfc4f6bcee39b1c9ee428 authored almost 9 years ago
f41c55f9f7b9b4b74b35e9db2516a70b05c21d2f authored almost 9 years ago
Closes #32
418a973520bbd485af60f13aef28f1c20d51b888 authored almost 9 years agofb497aba4497c9ae30355136946ef5b6f27eb85b authored almost 9 years ago
update the docs of net::*::bind
933b34cd25b7c32f3bd0138afd01417f4715fdc7 authored almost 9 years ago32ccf255b51329a8ffc39e2eead63ee044c661ec authored almost 9 years ago
00fb7ea4a3b9e7cd05780f563099f02a37e0b75e authored almost 9 years ago
550dc76bbdd075ee63bf7b23d4502d03814a5e77 authored almost 9 years ago
Remove now unused UdpSocketNew
80d23caa5eeb5b288d5cdc0af506bdddfd61b5aa authored almost 9 years agob2ae5ac7c924526ad1836dd5c127ce54751627cc authored almost 9 years ago
See https://github.com/tokio-rs/tokio-core/issues/15#issuecomment-245552463
ab5025a8b7c5b4fe55530307ebb329f7795ace82 authored almost 9 years ago8f92dc9d56d0d00d8cd7d9ea30fe69ce59cf1bf3 authored almost 9 years ago
0000210e0cf5c90dac930a7ec503dfa90aa54d36 authored almost 9 years ago
Closes #22
83784fd983bf4347284ec80077d897c22a9f7a50 authored almost 9 years agoAdd links in docs to `channel` function.
cd331dde34c800cb3aa7530cf9db55cc484c6b99 authored almost 9 years agoeb643c4d9e4869f1e949309d9207053dd5bf6f60 authored almost 9 years ago
In general it's easier to implement and should have more predictable performance
semantics for a...
* Handle -> Remote
* Pinned -> Handle
All APIs now take a `&Handle` by default and in general c...
66cff8e84b0bdbdc716fe1cd715363aa7e79aefa authored almost 9 years agoRenamed APIs
* Loop => reactor::Core
* LoopHandle => reactor::Handle
* LoopPin => reactor::Pinn...
* Remove TaskIo
* task_split -> split
* TaskIoRead -> ReadHalf
* TaskIoWrite -> WriteHalf
Close...
e60002b653594c0a024733d1db0ce8d680e4f808 authored almost 9 years agoAddress a few clippy suggestions.
93c61bb384b8097a4897661eb877fc6a8440a02a authored almost 9 years agoAdd documentation links.
0eeeca4ac12de0e9859a0533c482d3aa3ca4d51c authored almost 9 years ago9fe1d8aecaebfae07b503f908a84dced84ddfba8 authored almost 9 years ago
a9d24810bebdedee12f4f928fb8a55003d7ad8ad authored almost 9 years ago
93e1d4778dd50f04440d7fd6f06e6a60fac0a3dc authored almost 9 years ago
d7f76ca5495d2d1ab364b7a5b8e4cd2f069e3457 authored almost 9 years ago
docs: Fix copypasta in read_exact docs
815dc803dbcc350229af1928a4212d87fadaed62 authored almost 9 years agoabf452130082544ce32e37d06ca6102c1deb3a32 authored almost 9 years ago
Fix the link for the echo server example in the README
03ac1ea460c425d1f652afc0e917d746015cc202 authored almost 9 years ago242f8fa1b262021dd76ba217b0372470fdcef47f authored almost 9 years ago
3794cf7f1db616ecf27b6841a0d32facc3dd4bea authored almost 9 years ago
3282b3ec0d0da1237c11e59ea0ac46407dd3edd5 authored almost 9 years ago
2081bcc4308c767ec66c0b55c3edb949718c331f authored almost 9 years ago
Ensures that we can properly clear the readiness bits and manage them correctly.
Closes #10
6947933b6b90c97a8255e275b31647219f9a9524 authored almost 9 years ago02538d035f8dc65609e75c60188fa31d4c7d23f5 authored almost 9 years ago
Fix typo in Loop::run() documentation
6c6fb917eee295f779bb3afb050f1217f7172ee2 authored almost 9 years agoSimple typo fixed (`becuase` -> `because`)
376974c34972ac6a51f5a27257a39074a61977bf authored almost 9 years ago
* Remove `LoopData` as it's no longer necessary
* Add `LoopHandle::spawn` to spawn new futures o...
440a813c5ac23b07528dd710a9301f5e5c64126d authored almost 9 years ago
Fix DropBox's drop
7a852a7f4957ff4389f0a661d70d34f3a67a073b authored almost 9 years ago909f3e923cad7f1647f1eac076b01951a237047c authored almost 9 years ago
c820d67d662a0bcecb2b71d63014069d17b6e362 authored almost 9 years ago
Fix typo in panic message
b9395808bea624e6b64bcafbf6cc05cabdaca6cc authored almost 9 years ago32557cd8329e1e5ca2f2d059e39f496aab811558 authored almost 9 years ago
3715e624719f6e5ba80452b7afb0ac17c9df1089 authored almost 9 years ago
235812a4da29e6132aad5aa69b891ad0cf0621b2 authored almost 9 years ago
37a53a1085c6d526f44e3cae1dd47295e437f3f8 authored almost 9 years ago
347669ed2bf4d022685263c242dc6a43710b2f2f authored almost 9 years ago
d6e89985829337bc939ba92cd7b25adf01a550fd authored almost 9 years ago
Renames the futures-mio crate to tokio-core, pulls in the futures-io crate under
an `io` module,...
This way they can use that proof that they're running on the event loop
e71d509fee767d6b796ba18a5501f80f0fb4babc authored almost 9 years agoThat's... what it is!
d1cd455225a33a1a0d8253d064d2cc173dadc400 authored almost 9 years agoDon't store an Arc in ReadinessStream
cff73b7a9d33f000c07501094041580d8ab59f24 authored almost 9 years ago9c309af59776c06c853f2bddf318746eb6618aeb authored almost 9 years ago
df9730fcbebc42e42a92592a71a6959de0f2dde3 authored almost 9 years ago
Split it up into a number of targeted modules for each purpose, for example loop
data, I/O sourc...
This commit contains a few refactorings, but the major goal is to remove the
`Arc` that's stored...
5ab323e5c2cb76c49a3ec8b6d5857b03ebdf28be authored almost 9 years ago
a9b53d61d2520715b3867d6c5b11e9f8006265fa authored almost 9 years ago
0a707ffccb940bdd5e0d4b4036319bdd60485afb authored almost 9 years ago
12a05b9568f1579e8855be11a6d1f4060af7c8b5 authored almost 9 years ago
We know that the future will never persist beyond this stack frame, so we can
just leave its own...
The core trait and associated types no longer require the `'static` bounds, and
all associated m...
311bfa07a362657c57037b44404a6e42cf560438 authored almost 9 years ago
* Auto-register interest whenever we see WouldBlock
* Remove implementations of `Stream<Item=Rea...
A more appealing model is actually just automatically inferring what needs to be
scheduled based...
Also involved yet another round of bug fixes to the timer wheel as well as an
unfortunately seri...
We're not NotReady until we hit the final future and it's not done.
62f306629d6f295e37b2a92db6b9219116a5edd3 authored almost 9 years agoCloses #61
217af868e1ecc6212e1f403bb29489fd219a0a61 authored almost 9 years agoAvoid moves as it apparently adversely affects perf
8327d327c10738517a8ff6c6aa986baa70305ae4 authored almost 9 years agoIt's store there anyway!
3158a2c73be4c8145185df4b06578fed3875fe61 authored almost 9 years ago
This bound existed for two primary reasons, both detail below, and both of which
have now been s...
9911f421eba909012cb1856d4d983fc68d34569c authored almost 9 years ago
No need for this, all we need is 'static now
ef3efd41750df9bb4c139a4d0739f42a56168a4f authored almost 9 years ago