We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d24e776 commit fc93efbCopy full SHA for fc93efb
Tests/OpenGraphCompatibilityTests/Graph/GraphCompatibilityTests.swift
@@ -70,12 +70,10 @@ struct GraphCompatibilityTests {
70
@Test
71
func graphCallback() {
72
let graph = Graph()
73
- Graph.setUpdateCallback(graph, callback: nil)
74
- Graph.setUpdateCallback(graph) {
+ graph.onUpdate {
75
print("Update")
76
}
77
- Graph.setInvalidationCallback(graph, callback: nil)
78
- Graph.setInvalidationCallback(graph) { attr in
+ graph.onInvalidation { attr in
79
print("Invalidate \(attr)")
80
81
0 commit comments