mirror of
https://github.com/danog/amp.git
synced 2024-11-27 04:24:42 +01:00
Combine use statements
This commit is contained in:
parent
dae4eb90da
commit
bdc26e1e8b
@ -4,8 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Amp;
|
||||
|
||||
use Interop\Async\Awaitable;
|
||||
use Interop\Async\Loop;
|
||||
use Interop\Async\{ Awaitable, Loop };
|
||||
|
||||
/**
|
||||
* Creates an awaitable from a generator function yielding awaitables.
|
||||
|
@ -4,8 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Amp;
|
||||
|
||||
use Interop\Async\Awaitable;
|
||||
use Interop\Async\Loop;
|
||||
use Interop\Async\{ Awaitable, Loop };
|
||||
|
||||
/**
|
||||
* Creates a failed awaitable using the given exception.
|
||||
|
@ -4,8 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Amp\Internal;
|
||||
|
||||
use Amp\Failure;
|
||||
use Amp\Success;
|
||||
use Amp\{ Failure, Success };
|
||||
use Interop\Async\Awaitable;
|
||||
|
||||
/**
|
||||
|
@ -5,8 +5,7 @@ declare(strict_types=1);
|
||||
namespace Amp\Internal;
|
||||
|
||||
use Amp\Failure;
|
||||
use Interop\Async\Awaitable;
|
||||
use Interop\Async\Loop;
|
||||
use Interop\Async\{ Awaitable, Loop };
|
||||
|
||||
/**
|
||||
* Trait used by Awaitable implementations. Do not use this trait in your code, instead compose your class from one of
|
||||
|
@ -4,8 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Amp;
|
||||
|
||||
use Interop\Async\Awaitable;
|
||||
use Interop\Async\Loop;
|
||||
use Interop\Async\{ Awaitable, Loop };
|
||||
|
||||
/**
|
||||
* Creates an awaitable that resolves itself with a given value after a number of milliseconds.
|
||||
|
@ -4,8 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Amp;
|
||||
|
||||
use Interop\Async\Awaitable;
|
||||
use Interop\Async\Loop;
|
||||
use Interop\Async\{ Awaitable, Loop };
|
||||
|
||||
/**
|
||||
* Creates a successful awaitable using the given value (which can be any value except another object implementing
|
||||
|
@ -4,9 +4,7 @@ declare(strict_types=1);
|
||||
|
||||
namespace Amp;
|
||||
|
||||
use Interop\Async\Awaitable;
|
||||
use Interop\Async\Loop;
|
||||
use Interop\Async\Loop\Driver;
|
||||
use Interop\Async\{ Awaitable, Loop, Loop\Driver };
|
||||
|
||||
/**
|
||||
* Execute a callback within the event loop scope.
|
||||
|
Loading…
Reference in New Issue
Block a user