StoreExitcall

Store an exit call handle in a global registry for later retrieval with GetExitcall. This is useful when you need to start and end a call in separate places, and it is difficult to pass the handle through the parts of the code that need it.

The handle is removed when the exit call, or the BT containing it, ends.

Format

func StoreExitcall(exitcall ExitcallHandle, guid string)

Parameters

  • exitcall: The exit call to store.
  • guid: A globally unique identifier to associate with the given call.

Example

ExitcallHandle ec = StartExitcall(bt, "authdb");
StoreExitcall(ec, "login-exit");