Tribe__Repository::async_delete( $to_delete, $return_promise = true )
{@inheritdoc}
Source
File: src/Tribe/Repository.php
public function async_delete( array $to_delete, $return_promise = true ) {
$promise = new Tribe__Promise( $this->get_delete_callback( $to_delete, true ), $to_delete );
if ( ! $return_promise ) {
// Dispatch it immediately and return the IDs that will be deleted.
$promise->save()->dispatch();
return $to_delete;
}
// Return the promise and let the client do the dispatching.
return $promise;
}