다음을 통해 공유


DispatchGroup.Notify 메서드

정의

오버로드

Notify(DispatchQueue, DispatchBlock)
Notify(DispatchQueue, Action)

그룹과 연결된 모든 블록이 완료되면 큐에 제출될 블록을 예약합니다.

Notify(DispatchQueue, DispatchBlock)

public void Notify (CoreFoundation.DispatchQueue queue, CoreFoundation.DispatchBlock block);
member this.Notify : CoreFoundation.DispatchQueue * CoreFoundation.DispatchBlock -> unit

매개 변수

적용 대상

Notify(DispatchQueue, Action)

그룹과 연결된 모든 블록이 완료되면 큐에 제출될 블록을 예약합니다.

public void Notify (CoreFoundation.DispatchQueue queue, Action action);
member this.Notify : CoreFoundation.DispatchQueue * Action -> unit

매개 변수

queue
DispatchQueue

비동기 호출을 위해 블록을 제출할 디스패치 큐입니다.

action
Action

그룹이 완료되면 호출할 작업입니다.

설명

이 함수는 디스패치 그룹과 연결된 모든 블록이 완료되면 지정된 큐에 알림 블록을 제출하도록 예약합니다.

디스패치 그룹과 연결된 블록이 없는 경우(즉, 그룹이 비어 있음) 알림 블록이 즉시 제출됩니다.

알림 블록이 대상 큐에 제출될 때 그룹이 비어 있습니다.

적용 대상