Swiftpack.co - Package - vapor-community/nio-kit

nio-kit

A description of this package.

Github

link
Stars: 2
Help us keep the lights on

Dependencies

Used By

Total: 1

Releases

0.1.0 - Nov 10, 2018

EventLoopFuture Operators

Adds standard operators to future types, so if you have for example, two EventLoopFuture<Int>, you can add them together:

let future1 = eventLoop.future(1)
let future2 = eventLoop.future(2)
let future3 = future1 + future2

Here's a list of all the operators:

+
+=
-
-=
*
*=
%
%=
&
&=
/
/=
>
>=
<
<=
<<
<<=
>>
>>=
^
^=
|
|=
~