dope-core 0.76.0

Owned native I/O and completion driver for dope
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use std::mem;

use crate::platform::thread;
use crate::platform::thread::{Finished, Group};

pub(super) fn finish<T, O, P>(group: &mut Group<T, O, P>) -> Finished<T, O, P> {
    // SAFETY: start published one handle per prefix entry; join all of them
    // before destroying any suffix input or handing back the first output.
    unsafe { thread::raw::reclaim(group) };
    group.started = 0;
    Finished {
        slots: mem::take(&mut group.slots).into_iter(),
    }
}