function with_event(event, fn) {
	try {
		request_event = event;
		return als ? als.run(event, fn) : fn();
	} finally {
		request_event = null;
	}
}
@template T
@param {RequestEvent | null} event
@param {() => T} fn