Commit graph

112 commits

Author SHA1 Message Date
Nikolay Kim
d39611d246
Clippy warnings (#382) 2024-07-16 22:13:33 +02:00
Nikolay Kim
e0b5284fdd
More tests (#368) 2024-05-29 20:30:14 +05:00
Nikolay Kim
34142e1ae2
Fix handling not consumed request's payload (#367) 2024-05-29 18:29:49 +05:00
Nikolay Kim
9c29de14cf
Fix handling payload timer after payload got consumed (#366) 2024-05-29 17:42:18 +05:00
Nikolay Kim
3b49828e5f
Use async fn for Service::ready() and Service::shutdown() (#364) 2024-05-28 19:26:08 +05:00
Nikolay Kim
dec6ab083a
Use "async fn" for Service::ready() and Service::shutdown() methods (#361) 2024-05-28 16:37:16 +05:00
Nikolay Kim
d393d87164
Refactor worker management (#312) 2024-03-23 07:17:04 +01:00
Nikolay Kim
661c5ea1fa Clippy warnings (#305) 2024-03-12 17:53:26 +05:00
Nikolay Kim
a8447b1f6d
Update deps (#296) 2024-02-07 06:01:17 -06:00
Nikolay Kim
b19cb340a7
Add fmt::Debug impl for PipelineCall (#295) 2024-02-07 04:29:35 -06:00
Nikolay Kim
112c127eb9
Use async fn for Responder and Handler traits (#283) 2024-01-09 23:26:17 +06:00
Nikolay Kim
e30d5c0fa5 Prep ntex release 2024-01-09 22:25:07 +06:00
Nikolay Kim
587b248b57 Prepare io release 2024-01-09 21:10:26 +06:00
Nikolay Kim
c864b10e62 Prepare release 2024-01-09 20:17:07 +06:00
Nikolay Kim
5869141954
Various cleanups (#282) 2024-01-09 19:35:38 +06:00
Nikolay Kim
48eb1c5e54 Update license 2024-01-08 21:32:26 +06:00
Nikolay Kim
412944e973 Prepare release 2024-01-07 20:26:26 +06:00
Nikolay Kim
4950eb4167 Migrate ntex to async fn in trait 2024-01-07 19:26:44 +06:00
Nikolay Kim
a9d5845005 Use async fn in trait for Service definition 2024-01-07 11:32:41 +06:00
Nikolay Kim
c011bc68c3
Use From<T::Error> for apply_fn util (#225)
* Use From<T::Error> for apply_fn util
2023-09-20 00:42:23 +06:00
Nikolay Kim
02e111d373
Add missing fmt::Debug impls (#224)
* Add missing fmt::Debug impls
2023-09-11 21:43:07 +06:00
Nikolay Kim
19cc8ab315 Clippy 2023-09-05 15:49:49 +06:00
Nikolay Kim
996f2afdb7 Use Pipeline<T> instead of ApplyService<T> 2023-08-14 16:23:10 +06:00
Nikolay Kim
17ffaf105e
Add .apply_fn() for chain and chain factory (#220)
* Add .apply_fn() for chain and chain factory
2023-08-12 17:55:00 +06:00
Nikolay Kim
594bf0a8e2
Refactor pipeline call impl (#219)
* Refactor pipeline call impl
2023-08-10 22:10:02 +06:00
Nikolay Kim
2e66b4b361 Update tests 2023-06-26 10:00:16 +06:00
Will Brown
eea5b3b539
Synchronized buffer (#216)
* added a new function to servicecall to allow only advancing to the service call and then returning the service response future
* buffer can maintain order/backpressure by implementing strict readiness and synchronous calling
* buffer can flush in order or cancel pending buffered futures on shutdown
2023-06-26 09:19:56 +06:00
Nikolay Kim
4380b3a155
PipelineCall is static (#215)
* PipelineCall is static

* Fix static lifetimes req
2023-06-23 23:11:16 +06:00
Nikolay Kim
1fd6311a5d Update changes 2023-06-22 18:43:25 +06:00
Nikolay Kim
6382ef6b40
Refactor service pipelines (#214) 2023-06-22 18:39:09 +06:00
Nikolay Kim
a02009d7be Update docs 2023-06-21 10:30:56 +06:00
Nikolay Kim
589b48f073 Link apply_fn service readiness with parent 2023-06-21 10:24:16 +06:00
Nikolay Kim
ea14e8f0f4
Add ContainerCall future (#213)
* Add Container::static_call(), returns future that is suitable for spawning into runtime

* Remove unsafe from h1 dispatcher

* Make call_nowait public

* Update MSRV
2023-06-21 10:21:43 +06:00
Nikolay Kim
50528b11ff
Remove Deref for Container<T> (#212) 2023-06-19 22:31:07 +06:00
Nikolay Kim
108e2ac20a Rename Ctx to ServiceCtx 2023-06-19 18:47:15 +06:00
Nikolay Kim
b350280dba Slight optimization and docs 2023-06-16 23:29:56 +06:00
Nikolay Kim
1b199712a9 Update versions 2023-06-16 20:32:52 +06:00
Nikolay Kim
274488bd84 Remove boxed rc service 2023-06-16 00:16:14 +06:00
Nikolay Kim
e450ac80b8 Make Ctx copy 2023-06-16 00:16:14 +06:00
Nikolay Kim
7960b550c9 Migrate to ntex-service 1.2 (#209)
* Migrate to ntex-service 1.2
2023-06-16 00:16:14 +06:00
Nikolay Kim
0e1f0b5f73 Service container (#208)
* Enforce service readiness during call
* Introduce service sharable readiness
2023-06-16 00:16:14 +06:00
Nikolay Kim
44ff6a8ee6
Remove Rc<S> where S: Service as it brakes readiness check validity (#198)
* Add SharedService, a service that can be checked for readiness by multiple tasks
2023-04-14 09:48:27 -07:00
Nikolay Kim
29e04cf478
Switch to 2021 edition (#172) 2023-02-02 19:30:07 +01:00
Nikolay Kim
7abd4a61f8 Prepare release 2023-01-24 08:46:56 +01:00
leone
251e63063e
[FEATURE] FnShutdown service with on_shutdown callback (#163)
* FnShutdown service with on_shutdown callback
2023-01-24 08:42:31 +01:00
Nikolay Kim
f47e830cfb
Improve tests (#158)
* Improve tests
2023-01-06 17:08:24 +01:00
Nikolay Kim
f44cad4512 Prepare release 2023-01-04 12:19:52 +01:00
Nikolay Kim
a54f6f7ac2 Prepare release 2022-12-28 13:02:24 +01:00
Nikolay Kim
4baf42d6d1
Restart timer after runtime stop (#154)
* Code coverage
* Restart timer after runtime stop
2022-12-28 12:42:54 +01:00
Nikolay Kim
67eb653ef2 Prepare ntex-service release 2022-12-28 09:45:41 +01:00