All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.ray.api.parallelactor.VoidParallelActorTaskCaller Maven / Gradle / Ivy

There is a newer version: 2.36.0
Show newest version
package io.ray.api.parallelactor;

import io.ray.api.Ray;
import io.ray.api.function.RayFuncVoid;

public class VoidParallelActorTaskCaller {

  private ParallelActorInstance instance;

  private RayFuncVoid func;

  private Object[] args;

  public VoidParallelActorTaskCaller(
      ParallelActorInstance instance, RayFuncVoid func, Object[] args) {
    this.instance = instance;
    this.func = func;
    this.args = args;
  }

  public void remote() {
    ParallelActorContext ctx = Ray.internal().getParallelActorContext();
    ctx.submitTask(instance.getActor(), instance.getInstanceId(), func, args);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy