# Technical Documentation: crossbeam-rs/crossbeam-epoch

> ℹ️ **Provenance:** Standard README.md · [CodeWiki Reference](https://codewiki.google/github.com/crossbeam-rs/crossbeam-epoch) · Recency: Active (< 180 days)

## NOTE: This crate has been moved into the [crossbeam](https://github.com/crossbeam-rs/crossbeam) repository.

Do not use this repository.

# Epoch-based garbage collection

[](https://travis-ci.org/crossbeam-rs/crossbeam-epoch)
[](https://github.com/crossbeam-rs/crossbeam-epoch)
[](https://crates.io/crates/crossbeam-epoch)
[](https://docs.rs/crossbeam-epoch)

This crate provides epoch-based garbage collection for use in concurrent data structures.

If a thread removes a node from a concurrent data structure, other threads
may still have pointers to that node, so it cannot be immediately destructed.
Epoch GC allows deferring destruction until it becomes safe to do so.

## Usage

Add this to your `Cargo.toml`:

```toml
[dependencies]
crossbeam-epoch = "0.6"
```

Next, add this to your crate:

```rust
extern crate crossbeam_epoch as epoch;
```

The minimum required Rust version is 1.26.

## License

Licensed under the terms of MIT license and the Apache License (Version 2.0).

See [LICENSE-MIT](LICENSE-MIT) and [LICENSE-APACHE](LICENSE-APACHE) for details.

--- METRICS ---
- Files Extracted: 1
- Estimated Token Budget: ~269 tokens
- Recency Window: Active (< 180 days)
- Canonical Reference: https://codewiki.google/github.com/crossbeam-rs/crossbeam-epoch
