1 stable release

Uses old Rust 2015

1.0.0 Nov 11, 2014

#12 in #think


Used in event-emitter

3KB

Forever

A never-dropping data store

Defines the Forever struct, which provides immutable access to data that is Sync, Send, and is never dropped. You can think of it as an Arc with an always positive refcount.

Example:

fn main() {
    let a = Forever::new(7u); // 7u will never be dropped.
    let b = a.clone() // Same underlying data.

    spawn(proc() {
        println!("{}", *b); // 7
    });
}

lib.rs:

Shareable data that lasts forever, with no reference count.

No runtime deps