demo of latency-handling promises