SyncEvent::reset

Resets a manual event

&reftitle.description; public `bool` `SyncEvent::reset`

Resets a `SyncEvent` object that has been fired/set. Only valid for manual event objects.

&reftitle.parameters; &no.function.parameters;
&reftitle.returnvalues;

&return.success;

&reftitle.examples;

### `SyncEvent::reset` example

    <?php
    // In a web application:
    $event = new SyncEvent("DemoApplication", true);
    $event->wait();

    // In a cron job:
    $event = new SyncEvent("DemoApplication", true);
    $event->reset();
    /* ... Do some maintenance task(s) ... */
    $event->fire();
    ?>

&reftitle.seealso;

- `SyncEvent::fire`
- `SyncEvent::reset`
- `SyncEvent::wait`