package com.nativescript.apputils import java.util.concurrent.ConcurrentHashMap class WorkersContext { companion object { private val container: MutableMap = ConcurrentHashMap() fun getValue(key: String): Any? { return container[key] } fun setValue(key: String, value: Any?) { if (value != null) { container[key] = value } else { container.remove(key) } } } }