MCPcopy Index your code
hub / github.com/grpc/grpc-java / after

Method after

api/src/context/java/io/grpc/Deadline.java:69–71  ·  view source on GitHub ↗

Create a deadline that will expire at the specified offset based on the #getSystemTicker system ticker. If the given offset is extraordinarily long, say 100 years, the actual deadline created might saturate. @param duration A non-negative duration. @param units The time unit for the dur

(long duration, TimeUnit units)

Source from the content-addressed store, hash-verified

67 * @return A new deadline.
68 */
69 public static Deadline after(long duration, TimeUnit units) {
70 return after(duration, units, SYSTEM_TICKER);
71 }
72
73 /**
74 * Create a deadline that will expire at the specified offset based on the given {@link Ticker}.

Calls

no outgoing calls