Sync

Noun · Development

Definitions

  1. Short for synchronous — describes an operation that blocks the calling thread until it completes and returns a result, as opposed to async operations that return immediately and deliver results later via callbacks, promises, or events. Also used to mean keeping two data stores consistent with each other.

    In plain English: An operation that makes you wait until it finishes before anything else can happen, or the act of making two copies of data match.

    Example: "The file read is sync, so the entire event loop stalls until the disk returns — switch it to the async variant."

Related Terms