mirror of
https://github.com/danog/amp.git
synced 2025-01-22 13:21:16 +01:00
3af013d418
Amp Future instances double both as Promisor and Promise implementations when AMP_DEBUG is defined and set to false. This switch allows private Promise resolution safety by default at the expense of performance. Amp applications should set AMP_DEBUG to false in production environments to maximize performance.
12 lines
201 B
PHP
12 lines
201 B
PHP
<?php
|
|
|
|
namespace Amp;
|
|
|
|
/**
|
|
* A placeholder value that will be resolved at some point in the future by
|
|
* the Promisor that created it.
|
|
*/
|
|
class Unresolved implements Promise {
|
|
use Placeholder;
|
|
}
|