import { promisedComputed , PromisedComputedValue } from "./promisedComputed" ; import { throttledComputed } from "./throttledComputed" ; param init param delay param compute param name export function asyncComputed < T > ( init , delay , compute , name ? ) { const throttled = throttledComputed ( compute , delay , name ) ; const promised = promisedComputed ( init , throttled . get ) ; return { get ( ) { return promised . get ( ) ; } , get busy ( ) { return promised . busy ; } , getNonReactive ( ) { return promised . getNonReactive ( ) ; } , refresh ( ) { throttled . refresh ( ) ; } } ; }