i have implemented this handle function for SvelteKit hooks and since it returns a promise of response, the resolve function does not necessarily need to be awaited. This is because it is a function that either directly returns a value or returns a promise of a value. However, I noticed that this example in the documentation awaits the function. Is it acceptable to not await the function, and when should and should not (if at all) we await?
export const handle:Handle=async ({event,resolve}) => {
let sid = getsid(event.request.headers.get('cookie'))
event.locals.sessionobj = getSO(sid?sid:'test')
return resolve(event)
}