sharedPreferences .edit() // create an Editor .putBoolean("key", value) .apply() // write to disk asynchronously __Originally posted by @cheveronllcltd in https://github.com/GoogleChrome/web.dev/pull/2479#issuecomment-762682712__
sharedPreferences
.edit() // create an Editor
.putBoolean("key", value)
.apply() // write to disk asynchronously
Originally posted by @cheveronllcltd in #2479 (comment)