The promise represents the read-only view, and the resolver is needed to set the future's value.
promise表示只读视图，需要resolver来设置future的值。