Fixed the example in the docs, the methods are async