Package libdispatch

Apple's Grand Central Dispatch library

https://github.com/apple/swift-corelibs-libdispatch

Grand Central Dispatch (GCD or libdispatch) provides
comprehensive support for concurrent code execution on
multicore hardware.

libdispatch is currently available on all Darwin platforms.
This project aims to make a modern version of libdispatch
available on all other Swift platforms. To do this, we will
implement as much of the portable subset of the API as
possible, using the existing open source C implementation.

libdispatch on Darwin is a combination of logic in the xnu
kernel alongside the user-space Library. The kernel has the
most information available to balance workload across the
entire system. As a first step, however, we believe it is
useful to bring up the basic functionality of the library
using user-space pthread primitives on Linux. Eventually, a
Linux kernel module could be developed to support more
informed thread scheduling.

Version: 6.0.1

Library Functions

dispatch the dispatch framework
dispatch_after schedule blocks for deferred execution
dispatch_api Designing API using dispatch
dispatch_apply schedule blocks for iterative execution
dispatch_async schedule blocks for execution
dispatch_data_create create and manipulate dispatch data objects
dispatch_group_create group blocks submitted to queues
dispatch_io_create open, close and configure dispatch I/O channels
dispatch_io_read submit read and write operations to dispatch I/O channels
dispatch_object General manipulation of dispatch objects
dispatch_once execute a block only once
dispatch_queue_create where blocks are scheduled for execution
dispatch_read asynchronously read from and write to file descriptors
dispatch_semaphore_create synchronized counting semaphore
dispatch_source_create dispatch event sources
dispatch_time Calculate temporal milestones