SchedulingMutex

interface SchedulingMutex (View source)

Methods

bool create(Event $event, DateTimeInterface $time)

Attempt to obtain a scheduling mutex for the given event.

bool exists(Event $event, DateTimeInterface $time)

Determine if a scheduling mutex exists for the given event.

Details

bool create(Event $event, DateTimeInterface $time)

Attempt to obtain a scheduling mutex for the given event.

Parameters

Event $event
DateTimeInterface $time

Return Value

bool

bool exists(Event $event, DateTimeInterface $time)

Determine if a scheduling mutex exists for the given event.

Parameters

Event $event
DateTimeInterface $time

Return Value

bool

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.7/Illuminate/Console/Scheduling/SchedulingMutex.html