Skip to content

탈출 클로저에 대하여 설명하시오. #35

Description

@Glsme

탈출 클로저 (Escaping Closure)

함수 인자로 클로저가 전달되지만, 함수가 반환된 이후에 실행되는 클로저이다.

  • 탈출 클로저를 사용하기 위해선 앞에 @escaping 키워드를 붙여야 한다.
  • 보통 비동기 작업을 하기 위해 사용한다.
  • 일반 클로저처럼 캡처 현상을 가지고 있어, Memory Leak에 주의하며 사용해야 한다.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions