You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* A thunk is a function returned from a function that is a
27
28
* closure over a value (in this case an interface value and error).
28
29
* When called, it will block until the value is resolved.
30
+
*
31
+
* loader.Load() may be called multiple times for a given batch window.
32
+
* The first context passed to Load is the object that will be passed
33
+
* to the batch function.
29
34
*/
30
35
thunk:= loader.Load(context.TODO(), dataloader.StringKey("key1")) // StringKey is a convenience method that make wraps string to implement `Key` interface
0 commit comments