1
0
mirror of https://github.com/danog/amp.git synced 2024-11-30 04:29:08 +01:00

Combine use statements

This commit is contained in:
Aaron Piotrowski 2016-08-16 13:07:51 -05:00
parent dae4eb90da
commit bdc26e1e8b
7 changed files with 7 additions and 15 deletions

View File

@ -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.

View File

@ -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.

View File

@ -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;
/**

View File

@ -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

View File

@ -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.

View File

@ -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

View File

@ -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.