Skip to content

Support delegation properties #83

@HKhademian

Description

@HKhademian

As atomic document says to leak atomic values to public use:

val _pref = atomic(0L)
var pref : Long
    get() = _pref.value
    set(value) { _pref.value = value }

so I think it's possible to have something like:

val pref by atomicVar(0L)
val pref by atomicVal(0L)

this::pref.atomic.value = 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions