Protocol and Promises

Questions popped up while I was reading about Ancillary services (electric power) - Wikipedia

What’s a protocol with promises? What’s a protocol without?

1 Like

In software APIs, calls to endpoints can have a “return value”, a response with assessable data – this interaction feels like it could also be read as a commandment (thou shalt return value), akin to a promise.

Calls that are “asynchronous”, that are put on a queue to be worked later, often do not return value (other than “ok I sent the message”). Later calls have to be made to check whether the task/promise was fulfilled. Some languages actually use the term “promise” for functions that ascertain whether asynchronous work was performed.

1 Like