Skip to content

KVault.set() uses sharedPreferences.commit() instead of sharedPreferences.apply() #49

@rishabh876

Description

@rishabh876

SharedPreference provides two ways to write changes i.e., commit() and apply(). Where commit() is a synchronous call and can block Mainthread. Whereas apply() write in-memory first followed by asynchronously to the disk.
More details on apply() can be found here.

Can we add option to use apply() by introducing a new API KVault.setAsync(... , ...)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions