Effect CommunityEC
Effect Community3y ago
7 replies
Sadra

Difference between using variables and functions for effects

is there difference between two of this or the result always be same ?

cab we use variables insted of functions for effect ?

const getTimeEffect = Effect.promise(() => getTime());

const getTimeEffect2 = () => Effect.promise(() => getTime());
Was this page helpful?