Skip to content

Commit

Permalink
Add public init for Recorder (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgeLyon authored Jan 11, 2022
1 parent 5a8dcbf commit 29f9781
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/Shwift/IO.swift
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ public struct Output {

public actor Recorder {

public init() {}

public func write<T: TextOutputStream>(to stream: inout T) async {
for (_, buffer) in strings {
buffer.write(to: &stream)
Expand Down

0 comments on commit 29f9781

Please sign in to comment.