In JavaScript, is there a way to create a custom thenable that automatically triggers some code after it has been awaited? Consider the following code: