Utility function to get the name of the current coroutine instance.
Executes a given block of code within a coroutine context that has a specified name.