The resource loading... loading...

set

The set() function is used to set a key-value pair.

set(key, value)

The parameter key is used to set the key name to be modified.

key true string The parameter value is used to set the key value to be modified.

value true string, number, bool, object, array, function, null value and other types supported by the system

function main() {
    var dict1 = threading.Dict()
    dict1.set("func1", function(p) {
        Log("func1 p:", p)
    })
    
    threading.Thread(function(dict1) {
        var func1 = dict1.get("func1")
        func1("test")
    }, dict1).join()
}

It supports key-value passing into functions.

{@fun/Threads/ThreadDict/get get}

get Web3