1
0
mirror of https://github.com/fafhrd91/actix-net synced 2024-11-24 05:52:59 +01:00
Commit Graph

27 Commits

Author SHA1 Message Date
Rob Ede
dc67ba770d
fmt with import grouping 2022-04-10 02:48:53 +01:00
Luca Bruno
ce8ec15eaa
system: run and return exit code on stop (#411)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-11-15 18:49:02 +00:00
fakeshadow
a1d15f2e08
minimal support of System type with io-uring (#395) 2021-10-21 11:04:51 +01:00
Rob Ede
47f278b17a
fix test macro in presence of other imports named test (#399) 2021-10-19 16:13:13 +01:00
fakeshadow
6fed1c3e7d
add support for io-uring (#374)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-10-11 02:58:11 +01:00
Ibraheem Ahmed
2b1edb95ea
spawn should allow futures with non-unit outputs (#369)
Co-authored-by: Rob Ede <robjtede@icloud.com>
2021-09-01 21:51:03 +01:00
Rob Ede
a0fe2a9b2e
clippy 2021-07-16 21:46:32 +01:00
Rob Ede
32543809f9
add System::try_current (#275) 2021-02-06 22:45:03 +00:00
Rob Ede
eb4d29e15e
add arbiter handle assoc fn (#274)
* add arbiter handle assoc fn
2021-02-06 22:27:56 +00:00
Rob Ede
4ec358575e
prepare actix-rt v2.0.0 release (#262) 2021-02-03 10:25:31 +00:00
Rob Ede
0b656f51e1
deprecate rt TLS item storage 2021-01-31 04:48:03 +00:00
Rob Ede
0eb68d1c7b
Revert "remove arbiter TLS item storage"
This reverts commit 3e6f69885c.
2021-01-31 04:45:27 +00:00
Rob Ede
3e6f69885c
remove arbiter TLS item storage 2021-01-31 04:43:35 +00:00
Rob Ede
2fa60b07ae
prevent arbiter leaks by waiting for registration 2021-01-31 04:41:28 +00:00
Rob Ede
b75254403a
remove builder and introduce worker handle (#257) 2021-01-31 03:34:07 +00:00
Rob Ede
1b35ff8ee6
express spawn fn as spawn fut (#256) 2021-01-29 15:16:30 +00:00
Rob Ede
2924419905
prevent spawn_fn panic bubbling (#255) 2021-01-29 14:16:10 +00:00
Rob Ede
6b86b5efc5
rename arbiter to worker (#254) 2021-01-29 04:08:14 +00:00
Rob Ede
ba39c8436d
remove tokio runners (#253) 2021-01-29 02:21:06 +00:00
fakeshadow
feac376c17
fix actix-tls build (#252) 2021-01-28 10:31:57 +00:00
Rob Ede
45edff625e
add rt tests and doc tests 2021-01-26 09:46:14 +00:00
fakeshadow
874e5f2e50
change default name resolver and allow custom resolvers (#248) 2021-01-23 01:33:50 +00:00
fakeshadow
0c12930796
update to tokio 1.0 for actix-rt (#236) 2020-12-28 01:40:22 +00:00
fakeshadow
518bf3f6a6
remove RUNNING Q PENDING thread locals from actix-rt (#207) 2020-12-26 23:26:02 +00:00
Jonathas-Conceicao
783880bb0a actix-rt: Add Arbiter::is_running helper and fix System::is_set doc
`Arbiter::is_running` can be used to check if the current even-loop is currently
running; which should also work after the system has stopped. `System::is_set`
was updated to reflect what it actually does, it tells if the event loop has
started, which alone can't tell if it has stopped.

Signed-off-by: Jonathas-Conceicao <jadoliveira@inf.ufpel.edu.br>
2020-04-05 21:00:54 -03:00
Jonathas-Conceicao
f1685d8253 Add Arbiter::local_join associated function
Arbiter::local_join function can be used to await for futures spawned
on current arbiter.

Signed-off-by: Jonathas-Conceicao <jadoliveira@inf.ufpel.edu.br>
2020-02-26 12:59:46 -03:00
Jonathas-Conceicao
e3b6a33b97 Add integration tests
These initial tests validade basic usage with timed futures for:
- `System::block_on`;
- `Arbiter::new`;
- `Arbiter::stop`;
- `Arbiter::join`;

Signed-off-by: Jonathas-Conceicao <jadoliveira@inf.ufpel.edu.br>
2020-02-26 12:59:46 -03:00