# nr.refreshable
Provides the `Refreshable` class. A refreshable is a thread-safe container for a value that changes
over time. Refreshables can be subscribed to, to be notified when they are updated, and mapped to
compute new values and cache them as the parent gets updated.
__Example__
```py
from nr.refreshable import Refreshable
root = Refreshable(42)
child = root.map(lambda n: n + 10)
assert child.get() == 52
root.update(100)
assert child.get() == 110
```
---
<p align="center">Copyright © 2021 Niklas Rosenstein</p>
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
共15个文件
txt:4个
py:3个
pkg-info:2个
资源分类:Python库 所属语言:Python 资源全名:nr.refreshable-0.0.2.tar.gz 资源来源:官方 安装方法:https://lanzao.blog.csdn.net/article/details/101784059
资源推荐
资源详情
资源评论
收起资源包目录
nr.refreshable-0.0.2.tar.gz (15个子文件)
nr.refreshable-0.0.2
MANIFEST.in 154B
PKG-INFO 1KB
src
nr
__init__.py 82B
refreshable
py.typed 0B
__init__.py 1KB
nr.refreshable.egg-info
PKG-INFO 1KB
not-zip-safe 1B
SOURCES.txt 341B
top_level.txt 3B
dependency_links.txt 1B
setup.cfg 38B
package.yml 212B
setup.py 2KB
README.md 536B
LICENSE.txt 1002B
共 15 条
- 1
资源评论
挣扎的蓝藻
- 粉丝: 13w+
- 资源: 15万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功