Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Added documentation for .retry and .timeout for helpers #7254

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions docs/concepts/Helpers/Helpers.md
Expand Up @@ -165,6 +165,12 @@ sails.log('Ok it worked! The result is:', result);

> This is roughly the same usage you might already be familiar with from [model methods](sailsjs.com/documentation/concepts/models-and-orm/models) like `.create()`.

Additionally, you can add two different chainable methods on helper invocation: `.timeout()` and `.retry()`:

```javascript
var result = await sails.hellpers.formatWelcomeMessage('Dolly').timeout(5000).retry();
steventhanna marked this conversation as resolved.
Show resolved Hide resolved
```

##### Synchronous usage

If a helper declares the `sync` property, you can also call it without `await`:
Expand Down