Full threadafarah1·You can also race it with another promise, which e.g. resolves on timeout.View on HN