Skip to main content

current_block_session

Function current_block_session 

Source
pub fn current_block_session() -> Option<BlockSession>
Expand description

The BlockSession installed for the current task, if any.

None means the current task runs outside a transacted block body; a joined step must then fail with super::TransactionError::JoinSessionMissing instead of auto-committing.