【问题标题】:Worker package disfunction when importing postgresql package导入 postgresql 包时工作包失效
【发布时间】:2016-05-30 15:51:32
【问题描述】:

我正在尝试使用 Worker 包和 PostgreSQL 包。

我不知道为什么,但如果我在 https://diegorochablog.wordpress.com/2014/02/18/worker-dart-concurrent-programming-does-not-have-to-be-hard/ 在只添加import 语句后没有进行任何更改:import 'package:postgresql/postgresql.dart';,示例停止工作(未调用任务的execute)。

Dart VM 版本:“macos_x64”上的 1.17.0-dev.4.1(2016 年 5 月 19 日星期四 11:21:39)。

pubspec.yaml

name: fibFuturesConcu
version: 0.0.1
description: A simple console application.
dependencies:
  worker: any

更新

显然,稳定版本的 Dart (1.16.0) 不会发生这种情况。

【问题讨论】:

  • 我明白了。但无法帮助您解决问题。
  • 你能包含你的 pubspec.yaml 的内容吗?还有你用什么版本的飞镖?
  • @PiKos 我已经用更多信息更新了这个问题。
  • @PiKos 刚查了一下,在Stable中没有发生,所以我猜这是一个错误......?

标签: dart dart-isolates


【解决方案1】:

使用 Dart Stable 1.16 时问题消失了。

【讨论】:

    猜你喜欢
    • 2019-06-22
    • 1970-01-01
    • 1970-01-01
    • 2018-07-23
    • 1970-01-01
    • 2017-08-08
    • 2019-12-07
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多