Running an effect before the 'main' app without leaving effect-world

I want to run an effect before my "main" app. Right now, I'm effectively doing
void premain.pipe(runPromise).then(main.pipe(/* ... */, runMain));

Is there a way without leaving-and-re-entering effect-world?
Was this page helpful?