#Please explain Directory.sync
1 messages · Page 1 of 1 (latest)
👋 Dagger resolves pipeline lazily for performance. It only computes what it needs to return what you queried for in the API
sync disables this optimization
by forcing computation of the pipeline so far, and telling you if it succeeded
In the context of Directory, sync means “compute the contents of this directory at once (by running the underlying pipeline) and wait for it to complete, then return control to me”
Ah, this makes sense. "Return result instead of promise", basically. Thanks!