Skip to content

Instantly share code, notes, and snippets.

View greglittlefield-wf's full-sized avatar

Greg Littlefield greglittlefield-wf

  • Workiva
  • Scottsdale, Arizona
View GitHub Profile
anonymous
anonymous / main.dart
Created February 23, 2018 22:50
red-block-7846
import 'dart:async';
main() {
var completer = new SafeCompleter();
completer.complete('foo');
completer.getFuture().then((val) => print('Complete! $val'));
}
class SafeCompleter<T> {