pub fn insert_sync(event: impl Into<IndefiniteEvent>)
Expand description

Insert a transaction into Cap without needing an await, this method guarantees finality of the transactions and can handle insertion errors that might happen on the root bucket. (e.g if the root bucket has gone out of cycles)

It works by having a local pending transactions buffer, in the heap storage, which it uses to track failed transactions.

If you’re using this method, be sure you store/restore the pending transactions during upgrades. You can use pending_transactions and restore_pending_transactions.