Files
Dmitry Zhlobo b84c1fe459 fix(core): gracefully shutdown the app when repl exits
The application module we pass to repl may have long-running phases
(e.g. database connection polling) and if we don't finish those
long-running phases the repl would stuck on exit possibly forever.

I encoutered this issue while using MikroORM.forRoot module.

The solution is to call `app.close()` when repl exits. Modules should
implement graceful shutdown using lifecycle hooks.
2025-05-28 14:59:22 +02:00
..