alef 0.25.24

Opinionated polyglot binding generator for Rust libraries
Documentation
1
2
3
4
5
6
#[rustler::nif]
pub fn visitor_reply(ref_id: u64, result: Option<String>) {
    if let Some(tx) = VISITOR_CHANNELS.lock().unwrap().get(&ref_id) {
        let _ = tx.send(result);
    }
}