Skip to content

Commit 76e43e5

Browse files
author
DavertMik
committed
deprecated I.limitTime and I.retry
1 parent 9151b8c commit 76e43e5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/actor.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ class Actor {
4242
limitTime(timeout) {
4343
if (!store.timeouts) return this
4444

45+
console.log('I.limitTime() is deprecated, use step.timeout() instead')
46+
4547
event.dispatcher.prependOnceListener(event.step.before, step => {
4648
output.log(`Timeout to ${step}: ${timeout}s`)
4749
step.setTimeout(timeout * 1000, TIMEOUT_ORDER.codeLimitTime)
@@ -57,6 +59,7 @@ class Actor {
5759
* @inner
5860
*/
5961
retry(opts) {
62+
console.log('I.retry() is deprecated, use step.retry() instead')
6063
const retryStep = require('./step/retry')
6164
retryStep(opts)
6265
return this

0 commit comments

Comments
 (0)