Skip to content

Commit

Permalink
Merge pull request #196 from apple/fix-incompat
Browse files Browse the repository at this point in the history
Add default implementation so that existing AsyncFXKeys still work
  • Loading branch information
swsnider committed Nov 8, 2023
2 parents 4866c2c + 4953c67 commit 855f760
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Sources/llbuild2fx/Key.swift
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,10 @@ extension AsyncFXKey {
try await fixCached(value: value, fi, ctx)
}
}

public func fixCached(value: ValueType, _ fi: FXFunctionInterface<Self>, _ ctx: Context) async throws -> ValueType? {
return nil
}
}

extension FXFunctionInterface {
Expand Down

0 comments on commit 855f760

Please sign in to comment.