bare::ffi::objc::dispatch
API 参考只有英文版,由标准库源代码中的英文文档注释生成。
Grand Central Dispatch: run a closure on
the main queue or a global one, through a Block.
Structs
QueueSource
pub struct QueueA dispatch queue (dispatch_queue_t).
The main thread's queue: its blocks run from the main run loop (
NSApplication::run,dispatch_main).The global concurrent queue of default quality of service.
The queue, for a C parameter of type
dispatch_queue_t.
Functions
dispatch_asyncSource
pub fn dispatch_async(queue: Queue, block: Block<fn()>) Run block on queue later (dispatch_async); the queue keeps the
block until it ran.