Skip to content
This repository was archived by the owner on Apr 14, 2025. It is now read-only.

Commit 02c8b35

Browse files
committed
adding NIO.EmbeddedEventLoop to shell
1 parent 225b1bf commit 02c8b35

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Sources/ExecutorKit/Exports.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@
88
@_exported import WebErrorKit
99
@_exported import protocol NIO.EventLoop
1010
@_exported import class NIO.EventLoopFuture
11+
@_exported import class NIO.EmbeddedEventLoop
12+

Sources/ShellKit/Shell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public class Shell: Executor {
8181
/// Initializer
8282
/// - Parameter connection: Connection details
8383
/// - Parameter eventLoop: Event loop
84-
public init(_ connection: Connection, on eventLoop: EventLoop) throws {
84+
public init(_ connection: Connection, on eventLoop: EventLoop = EmbeddedEventLoop()) throws {
8585
self.eventLoop = eventLoop
8686
switch connection.storage {
8787
case .local(dir: let dir):

0 commit comments

Comments
 (0)