Using '_______', one can recover from a panic and resume control, but it won't restore the stack to the point of the original panic.

  • catch()
  • defer()
  • handle()
  • recover()
In Go, the 'recover()' function is used to regain control of a goroutine that is panicking. However, it won't restore the stack to the point of the original panic. Instead, it only stops the panic and returns the value passed to 'panic()'.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *