-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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();
}
}
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request