MCPcopy Index your code
hub / github.com/apache/groovy / send

Method send

src/main/java/groovy/concurrent/Agent.java:172–175  ·  view source on GitHub ↗

Queues an update function to be applied to the current value. The function receives the current value and returns the new value. Updates are applied asynchronously and serialized: only one update runs at a time. @param updateFn a function from current value to new value

(Function<T, T> updateFn)

Source from the content-addressed store, hash-verified

170 * @param updateFn a function from current value to new value
171 */
172 public void send(Function<T, T> updateFn) {
173 Objects.requireNonNull(updateFn, "update function must not be null");
174 updateExecutor.execute(() -> applyUpdate(updateFn));
175 }
176
177 /**
178 * Queues an update function and returns an {@link Awaitable} that

Callers

nothing calls this directly

Calls 2

applyUpdateMethod · 0.95
executeMethod · 0.45

Tested by

no test coverage detected