Skip to main content
Version: Next

BurstTransaction

BurstTransactions are designed to continuously apply high rates of updates on properties (FIFO ordering). The only operation supported by BurstTransactions is to update properties of an instance.

Unlike classical Transactions, a burst transaction preserves the order of update operations and is designed to handle many updates per second for smooth shared animations.

Example of use: A marker representing a red dot on the screen which coordinate properties are controlled by motion sensors of an IoT device should use BurstTransaction instead of a bunch of continuous classical Transaction to have fluid movements on the screen.

Index

Constructors

Methods

Constructors

constructor

Methods

complete

  • complete(): Promise<void>
  • Commit and close the burst transaction


    Returns Promise<void>

    A Promise completing with commit success/failure

push

  • Push all property values from specified Observable to update specified object


    Type parameters

    • T

    Parameters

    • object: CloudObject

      the object to update

    • values: Observable<Map<Property<T>, T>>

      observable mapping properties to new values

    Returns void