Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface HvAsyncParams<T, I>

Object containing configuration for async helper

Type parameters

  • T

  • I

Hierarchy

  • HvAsyncParams

Index

Properties

Properties

Optional get

get: AsyncGetter<T>

asynchronous function that will be called to calculate the value. it also memorize used hyper-values and recalculate again if they change.

Optional initial

initial: I

initial value of result hyper-value. keep in mind that asynchronous function usually is not set when hyper-value is returned. By default initial value will be undefined

Optional set

asynchronous function to be called when a new value written into the hyper-value. comparing to update: it takes a new value and called to only approve that new value. there can be set either set or update not both of them.

Optional update

update: AsyncSetter<T>

asynchronous function to be called when a new value written into the hyper-value. comparing to set: it takes a new value and set the hyper-value to resolved value. there can be set either set or update not both of them.

Generated using TypeDoc