fixed ModuleInit<> code for WaitableEvent