You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the base release, of course, I marked unsafe handling for Perform actions.
// Perform an Action in a goroutine.
go action.Start()
Goroutine is not a queue. Not ensuring that actions are executed in order is the wrong way to handle multiple concurrent action requests. Channels are often used in Golang to handle communication or to implement a task queue. I plan is to create a runner similar to the Java version to execute actions.
/**
* Thread to perform an action.
*/
private static class ActionRunner extends Thread {
private Action action;
/**
* Initialize the object.
*
* @param action The action to perform
*/
public ActionRunner(Action action) {
this.action = action;
}
/**
* Perform the action.
*/
public void run() {
this.action.start();
}
}
The text was updated successfully, but these errors were encountered:
In the base release, of course, I marked unsafe handling for Perform actions.
Goroutine is not a queue. Not ensuring that actions are executed in order is the wrong way to handle multiple concurrent action requests. Channels are often used in Golang to handle communication or to implement a task queue. I plan is to create a runner similar to the Java version to execute actions.
The text was updated successfully, but these errors were encountered: