Home / Report Question

Q. What is the use of `defer` in Swift?
  • A. To delay function call
  • B. To define async code
  • C. To schedule clean-up code to run before scope exit
  • D. To pause execution