#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

#261 in Concurrency

32 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