Get the cancellation state associated with the coroutine.
cancellation_state get_cancellation_state() const;