AnyBar icon indicating copy to clipboard operation
AnyBar copied to clipboard

Acknowledge received message

Open sindresorhus opened this issue 10 years ago • 3 comments

By replying back. I want to ensure the status was changed successfully. Could be useful to also include in the reply whether the sent command was valid.

sindresorhus avatar Apr 09 '15 07:04 sindresorhus

UDP is not reliable. You can wait for infinite amount of time for your ack. Is it ok? What use case do you need this for?

On Thu, Apr 9, 2015 at 1:47 PM Sindre Sorhus [email protected] wrote:

By replying back. I want to ensure the status was changed successfully. Could be useful to also include in the reply whether the sent command was valid.

— Reply to this email directly or view it on GitHub https://github.com/tonsky/AnyBar/issues/22.

tonsky avatar Apr 12 '15 11:04 tonsky

Is it ok?

I guess I could just time out after x seconds.

What use case do you need this for?

It's normal to want to know if an operation succeeded. Imagine I use AnyBar to indicate whether the test suite passed. I would want to know if the status dot isn't correctly updating.

sindresorhus avatar Apr 13 '15 05:04 sindresorhus

How about a anybar command that returns the current state

anybar red
anybar status

Outputs "red".

tobylane avatar Mar 21 '16 11:03 tobylane