• Takes a suspended coroutine and makes it "dead" (non-runnable). This function returns true unless the coroutine is in an error state, in which case it returns false and the error message. A coroutine that is currently running cannot be closed. A coroutine cannot be resumed after it is closed.

    Parameters

    • co: thread

    Returns LuaTuple<[success: false, errorValue: unknown] | [success: true, errorValue: never]>