Skip to content

Instantly share code, notes, and snippets.

networks:
hosta-gi0-hostb-gi0:
driver_opts:
com.docker.network.container_iface_prefix: xr-1
internal: true
name: hosta-gi0-hostb-gi0
hosta-gi1-hostb-gi1:
driver_opts:
com.docker.network.container_iface_prefix: xr-0
internal: true
MultiThreadedEventLoopGroup.withCurrentThreadAsEventLoop { el in
let fut = el.scheduleTask(in: .seconds(1), {() throws -> Bool in print("Foo");return true;})
fut.futureResult.whenComplete { (result: Result<Bool, Error>) -> Void in
el.shutdownGracefully { error in
print(error)
}
}
}