Jer*_*oen 2 exception-handling d terminate vibed
当库通过静态初始化程序运行时,Vibe.D 是否具有内置终止函数?我想在 vibe.d 抛出异常时终止应用程序,例如打开文件。
我有一个服务器正在使用该listenHTTP功能进行侦听。
listenHTTP
per*_*nak 5
尝试getEventDriver().exitEventLoop();,从这里和这里。
getEventDriver().exitEventLoop();
编辑:有一个更简单的版本,独立功能vibe.core.core.exitEventLoop。
vibe.core.core.exitEventLoop
归档时间:
11 年,9 月 前
查看次数:
525 次
最近记录:
11 年,6 月 前