Effect CommunityEC
Effect Community3w ago
4 replies
tkchun

Scheduling Repeated HTTP Queries with Effect-atom

I am using Effect-atom with the HttpApi integration on my frontend. I'd like to query the endpoint on a schedule, like every 10 seconds. How should I correct the following code to achieve it: MyAtomHttpApiClient.query(”hello, “world, {}).pipe(Effect.repeat(Schedule.fixed(”10 seconds)))? Thanks
Was this page helpful?