Zig 0.17.0-dev (Split by item)

This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig library itself.

deinit

FsEvents.deinit
pub fn deinit(fse: *FsEvents, gpa: Allocator, io: Io) void

File

Code

pub fn deinit(fse: *FsEvents, gpa: Allocator, io: Io) void {
    fse.waiting_semaphore.as_object().release();
    fse.dispatch_queue.as_object().release();
    fse.core_services.close(io);

    gpa.free(fse.watch_roots);
    fse.watch_paths.deinit(gpa);
    {
        var paths_arena = fse.paths_arena.promote(gpa);
        paths_arena.deinit();
    }
}