addRunnable method

bool addRunnable(
  1. String functionName,
  2. RemoteFunctionRunnable runnable
)

Implementation

bool addRunnable(String functionName, RemoteFunctionRunnable runnable)
{
    if(this._registeredRunnables.containsKey(functionName))
    {
        return false;
    }

    this._registeredRunnables[functionName] = runnable;
    return true;
}