Is there a way of finding out which Chrome Extensions API methods support Promises?

Viewed 70

I just recently started programming a Chrome extension and after trying around a lot and failing, I decided to read almost the entire Docs, maybe should have done that earlier. ¯\_(ツ)_/¯

I decided I want to use Promises and read the page "Using promises".

Where it says:

"Not all methods in extensions APIs support promises. Sometimes that's because we haven't added promise support on the method yet; in many cases it's because using a promise isn't feasible for the method."

It also gives some examples of what API methods can and cannot be used with Promises.

What I could not find was a way to find out which methods support Promises and which do not.

For example: chrome.tabs.create supports Promises, but I cannot seem to find something indicating that in the docs.

First StackOverflow question so pls be gentle with me, help is very appreciated. :P

1 Answers

The best answer I could find myself is on an old Question with a recent update listing all the supported APIs with reference.

Related