klyn.collections.ArraySync.ArraySync
constructor

    public native ArraySync(size as Int)

Description

Creates a fixed-size synchronized array.

Primitive numeric and boolean slots are initialized to zero / false. Reference-like slots are initialized to null.

    import klyn.collections

    values = ArraySync<Int>(3)
    print(values)     # fs:[0, 0, 0]

Parameters

Parameter | Description
--- | ---
`size` | Number of elements.

Throws

- ValueException if size is negative.