Skip to content

Instantly share code, notes, and snippets.

View Aatitkarki's full-sized avatar
🎯
Focusing

Suresh Karki Aatitkarki

🎯
Focusing
  • @commercialbankofqatar
  • Doha, Qatar
View GitHub Profile

Ranger Cheatsheet

General

Shortcut Description
ranger Start Ranger
Q Quit Ranger
R Reload current directory
? Ranger Manpages / Shortcuts
@Aatitkarki
Aatitkarki / isolate.dart
Created March 22, 2021 14:48
ISOLATE DART COMPLETE COMMUNICATION
// Example of bi-directional communication between a main thread and isolate.
import 'dart:io'; // for exit();
import 'dart:async';
import 'dart:isolate';
Future<SendPort> initIsolate() async {
Completer completer = new Completer<SendPort>();
ReceivePort isolateToMainStream = ReceivePort();