dart - Dart 中未打印的未来价值
问题描述
try {
final processResult = await runGit(
['show', 'SDK-2.12.0-28.0.dev:pubspec.yaml'],
processWorkingDir: '/home/anirudh/projects/pub');
print('Awaiting git..');
print(processResult);
} catch (err) {
print('Caught error: $err');
}
输出是:等待 git .. 'ProcessResult' 的实例
为什么我没有得到 processResult 的值而只得到它的一个实例?
解决方案
推荐阅读
- javascript - “node bot.js”不在heroku中运行
- grafana - grafana仪表板中是否可以有2个不同的数据源
- javascript - Selenium 验证哪个按钮处于活动状态
- azure - 创建 Azure DPS 时,是否有任何 REST API 以编程方式链接 IoT 中心?
- android - 当我滚动并且视频在屏幕上上下移动时,它会停止。即使不在屏幕上,我也希望视频继续播放
- python - 我无法使用 Windows 32 位命令提示符从此模块导入
- visual-studio-code - 从 WSL 环境访问非路径 WSLENV 变量
- cocoapods - Nativescript NativeAPI 找不到 NSURL、NSURLRequest、NSObject
- java - 类型 T 不是有界参数的有效替代品 `
> - xml - 我的 xml 正在将所有文本值设置为“”的节点更改为没有文本值,我该如何阻止它?