Integrating fastify with effect
Hey everyone, I have a question I'm still wrapping my mind around all these new concepts with effect (coming from fp-ts), I saw the express integration example in the effect docs and I've decided to try and that but with
Now, since in fastify the listen function is a promise, how would I then change the example code ? I initially thought that I'll need to change the
also, fastify uses async functions for it's routes (see examples below), how would I treat these ?
any help would be much appreciated.
fastifyNow, since in fastify the listen function is a promise, how would I then change the example code ? I initially thought that I'll need to change the
Effect.sync into Effect.async but turns out these are completely different things with different purposes? also, fastify uses async functions for it's routes (see examples below), how would I treat these ?
any help would be much appreciated.
