Wraps the given asynchronous function in a new function that will ignore any outcome of the context as it resolves.
This can be useful when providing asynchonous event handler to .addEventlistener(), which only expects synchronous functions.
.addEventlistener()
The asynchronous function to execute.
A function returning nothing.
The arguments that our new function was called with.
Wraps the given asynchronous function in a new function that will ignore any outcome of the context as it resolves.
This can be useful when providing asynchonous event handler to
.addEventlistener()
, which only expects synchronous functions.