-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
User info, tag config, and files protocol (#34)
* add userInfo + tag config * fix merge * add deprecated init * fix property
- Loading branch information
1 parent
81253ab
commit 1d51559
Showing
6 changed files
with
211 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
extension LeafRenderer { | ||
@available(*, deprecated, message: "Use files instead of fileio") | ||
public var fileio: NonBlockingFileIO { | ||
guard let nio = self.files as? NIOLeafFiles else { | ||
fatalError("Unexpected non-NIO leaf files.") | ||
} | ||
return nio.fileio | ||
} | ||
|
||
@available(*, deprecated, message: "Use files instead of fileio") | ||
public convenience init( | ||
configuration: LeafConfiguration, | ||
cache: LeafCache = DefaultLeafCache(), | ||
fileio: NonBlockingFileIO, | ||
eventLoop: EventLoop | ||
) { | ||
self.init( | ||
configuration: configuration, | ||
cache: cache, | ||
files: NIOLeafFiles(fileio: fileio), | ||
eventLoop: eventLoop | ||
) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.