W3cubDocs

/Laravel 8

EventMutex

interface EventMutex (View source)

Methods

bool create(Event $event)

Attempt to obtain an event mutex for the given event.

bool exists(Event $event)

Determine if an event mutex exists for the given event.

void forget(Event $event)

Clear the event mutex for the given event.

Details

bool create(Event $event)

Attempt to obtain an event mutex for the given event.

Parameters

Event $event

Return Value

bool

bool exists(Event $event)

Determine if an event mutex exists for the given event.

Parameters

Event $event

Return Value

bool

void forget(Event $event)

Clear the event mutex for the given event.

Parameters

Event $event

Return Value

void

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