Effect CommunityEC
Effect Community3y ago
23 replies
TheStockBroker

Determining if an effect holds a cached result

How can I know if an effect holding a cached result?
const foo = Effect.runSync(Effect.cache(Foo.doFoo))

if (???) {
  doSomething()
} else {
  goTheLongWay()
}
Was this page helpful?