docs

v0.1.0 문서를 보고 있습니다. 이 버전은 더 이상 지원하지 않습니다. 최신 릴리스: v0.1.3 →

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 Queue

A dispatch queue (dispatch_queue_t).

  • pub fn main() -> Queue§

    Source

    The main thread's queue: its blocks run from the main run loop (NSApplication::run, dispatch_main).

  • pub fn global() -> Queue§

    Source

    The global concurrent queue of default quality of service.

  • pub fn as_raw(self) -> CPtr<u8>§

    Source

    The queue, for a C parameter of type dispatch_queue_t.

Trait implementations 2

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.