Create mechanism for providing lazily evaluated context data

This commit is contained in:
David Jennes
2022-07-28 00:33:36 +02:00
parent 0d8fdbc3aa
commit 1072e919a3
3 changed files with 81 additions and 8 deletions

View File

@@ -78,6 +78,8 @@ public struct Variable: Equatable, Resolvable {
if current == nil {
return nil
} else if let lazyCurrent = current as? LazyValueWrapper {
current = try lazyCurrent.value(context: context)
}
}