#thread-local #data #aggregation #collection #value #across #multiple

thread_local_collect

Supports the collection and aggregation of thread-local data across threads

5 releases (2 stable)

1.0.1 Jul 11, 2024
1.0.0 Jul 8, 2024
0.5.2 Jun 20, 2024
0.5.1 Jun 20, 2024
0.5.0 Jun 20, 2024

#297 in Concurrency

Download history 3/week @ 2024-07-17 15/week @ 2024-07-24 4/week @ 2024-07-31 4/week @ 2024-09-11 1/week @ 2024-09-18 14/week @ 2024-09-25 13/week @ 2024-10-02

240 downloads per month
Used in latency_trace

MIT license

145KB
3K SLoC

thread_local_collect

This library supports the collection and aggregation of thread-local data across threads. An aggregation operation is applied to the collected thread-local values and the resulting accumulated value is made available to the library's caller. This library contains multiple modules, with varying capabilities and constraints. See the documentation for details.

Documentation

See the API documentation on docs.rs, which includes a comprehensive overview and usage examples. The source repo also contains benchmarks and additional examples.

Support

Create a new issue on GitHub.

License

This library is distributed under the terms of the MIT license, with copyright retained by the author.

See LICENSE for details.

Dependencies

~215KB