FixTask Documentation

Back to summary

import "task/global";

Global class

Global class allows access to global data from different threads.

Functions

static function set(key, value)
Sets global variable for given key to value.
static function get(key): Dynamic
Gets the value of global variable for given key.
static function add(key, value: Integer): Integer
Sets global variable for given key to value incremented by given value while returning the previous value.