Skip to content

Commit ed8d75b

Browse files
authored
Clarify delay time (#41167)
1 parent 2002931 commit ed8d75b

25 files changed

+29
-31
lines changed

src/Illuminate/Bus/Queueable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ public function allOnQueue($queue)
127127
}
128128

129129
/**
130-
* Set the desired delay for the job.
130+
* Set the desired delay in seconds for the job.
131131
*
132132
* @param \DateTimeInterface|\DateInterval|int|null $delay
133133
* @return $this

src/Illuminate/Contracts/Mail/Mailable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function send($mailer);
2323
public function queue(Queue $queue);
2424

2525
/**
26-
* Deliver the queued message after the given delay.
26+
* Deliver the queued message after (n) seconds.
2727
*
2828
* @param \DateTimeInterface|\DateInterval|int $delay
2929
* @param \Illuminate\Contracts\Queue\Factory $queue

src/Illuminate/Contracts/Queue/Job.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ public function payload();
3333
public function fire();
3434

3535
/**
36-
* Release the job back into the queue.
37-
*
38-
* Accepts a delay specified in seconds.
36+
* Release the job back into the queue after (n) seconds.
3937
*
4038
* @param int $delay
4139
* @return void

src/Illuminate/Contracts/Queue/Queue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function pushOn($queue, $job, $data = '');
4343
public function pushRaw($payload, $queue = null, array $options = []);
4444

4545
/**
46-
* Push a new job onto the queue after a delay.
46+
* Push a new job onto the queue after (n) seconds.
4747
*
4848
* @param \DateTimeInterface|\DateInterval|int $delay
4949
* @param string|object $job
@@ -54,7 +54,7 @@ public function pushRaw($payload, $queue = null, array $options = []);
5454
public function later($delay, $job, $data = '', $queue = null);
5555

5656
/**
57-
* Push a new job onto the queue after a delay.
57+
* Push a new job onto a specific queue after (n) seconds.
5858
*
5959
* @param string $queue
6060
* @param \DateTimeInterface|\DateInterval|int $delay

src/Illuminate/Events/QueuedClosure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ public function onQueue($queue)
8080
}
8181

8282
/**
83-
* Set the desired delay for the job.
83+
* Set the desired delay in seconds for the job.
8484
*
8585
* @param \DateTimeInterface|\DateInterval|int|null $delay
8686
* @return $this

src/Illuminate/Foundation/Bus/PendingChain.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ public function onQueue($queue)
9191
}
9292

9393
/**
94-
* Set the desired delay for the chain.
94+
* Set the desired delay in seconds for the chain.
9595
*
9696
* @param \DateTimeInterface|\DateInterval|int|null $delay
9797
* @return $this

src/Illuminate/Foundation/Bus/PendingDispatch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ public function allOnQueue($queue)
8888
}
8989

9090
/**
91-
* Set the desired delay for the job.
91+
* Set the desired delay in seconds for the job.
9292
*
9393
* @param \DateTimeInterface|\DateInterval|int|null $delay
9494
* @return $this

src/Illuminate/Mail/Mailable.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ public function queue(Queue $queue)
233233
}
234234

235235
/**
236-
* Deliver the queued message after the given delay.
236+
* Deliver the queued message after (n) seconds.
237237
*
238238
* @param \DateTimeInterface|\DateInterval|int $delay
239239
* @param \Illuminate\Contracts\Queue\Factory $queue

src/Illuminate/Mail/PendingMail.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ public function queue(MailableContract $mailable)
136136
}
137137

138138
/**
139-
* Deliver the queued message after the given delay.
139+
* Deliver the queued message after (n) seconds.
140140
*
141141
* @param \DateTimeInterface|\DateInterval|int $delay
142142
* @param \Illuminate\Contracts\Mail\Mailable $mailable

src/Illuminate/Queue/BeanstalkdQueue.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function pushRaw($payload, $queue = null, array $options = [])
110110
}
111111

112112
/**
113-
* Push a new job onto the queue after a delay.
113+
* Push a new job onto the queue after (n) seconds.
114114
*
115115
* @param \DateTimeInterface|\DateInterval|int $delay
116116
* @param string $job

0 commit comments

Comments
 (0)