MCPcopy Create free account
hub / github.com/Effect-TS/effect / flush

Function flush

packages/effect/src/ui/internal/kernel.ts:974–984  ·  view source on GitHub ↗
(
  tree: Tree,
  from = tree.slow?.flush && tree.slow.now()
)

Source from the content-addressed store, hash-verified

972
973/** @internal */
974export const flush = (
975 tree: Tree,
976 from = tree.slow?.flush && tree.slow.now()
977): void => {
978 tree.entered++
979 try {
980 flushNow(tree, from)
981 } finally {
982 leave(tree)
983 }
984}
985
986/** @internal */
987export const flushAfter = (tree: Tree, work: () => void): void => {

Callers 4

wakeFunction · 0.70
flushAfterFunction · 0.70
mountFunction · 0.70
hideFunction · 0.50

Calls 2

flushNowFunction · 0.85
leaveFunction · 0.70

Tested by

no test coverage detected