get<T> method

T get<T>(
  1. AsyncSlotHandle<T> slot
)

Read a synchronous computed on the async graph, recording the dependency.

Implementation

T get<T>(AsyncSlotHandle<T> slot) {
  _slot._trackDep(slot);
  return slot.get() as T;
}