#Please explain Directory.sync

1 messages · Page 1 of 1 (latest)

hidden gorge
#

"Force evaluation in the engine" - what does this mean? What is being evaluated? Does "in the engine" imply in the engine process or container or something else? Where would evaluation occur otherwise? Is evaluation ever performed in the engine without being forced?

novel flicker
#

👋 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”

hidden gorge
#

Ah, this makes sense. "Return result instead of promise", basically. Thanks!