• Builds function which delays the synchronization for given msec and cancels the execution if transformer is triggered again.

    Parameters

    • delay: number

      time in msec to wait before synchronizing.

    • Optionalcallback: ConvertFunction

      callback which transforms the value.

    Returns Transformer

    transformer function.

    let a = new Clazz({prop: 2});
    let b = new Clazz();
    Binding.for(a, b)
    .syncToRight("prop",
    debounceOrCancel(100)
    ).enable().syncToRightNow();
    b.prop // is undefined but will be set after 100msec to 2