mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 00:04:25 +00:00
Make MacroProcessor nonisolated and Sendable.
This commit is contained in:
1 parent
78ebf4e698
commit
f87fb81b7d
1 file changed
+6
-3
@@ -8,17 +8,20 @@
|
||||
|
||||
import Foundation
|
||||
|
||||
enum MacroProcessorError: Error {
|
||||
enum MacroProcessorError: Error, Sendable {
|
||||
case emptyMacroDelimiter
|
||||
}
|
||||
|
||||
public final class MacroProcessor {
|
||||
nonisolated public final class MacroProcessor: Sendable {
|
||||
|
||||
let template: String
|
||||
let substitutions: [String: String]
|
||||
let macroStart: String
|
||||
let macroEnd: String
|
||||
lazy var renderedText: String = processMacros()
|
||||
|
||||
var renderedText: String {
|
||||
processMacros()
|
||||
}
|
||||
|
||||
/// Parses a template string and replaces macros with specified values.
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user