dart_mq 1.0.2 copy "dart_mq: ^1.0.2" to clipboard
dart_mq: ^1.0.2 copied to clipboard

DartMQ is a message-queue system that facilitates communication between different components in the application.

example/main.dart

import 'package:dart_mq/dart_mq.dart';

import 'receiver.dart';
import 'sender.dart';

void main() async {
  MQClient.initialize();

  final sender = Sender();

  final receiver = Receiver()..listenToGreeting();

  sender.sendGreeting(greeting: 'Hello, World!');

  /// This line is because, well, the whole idea is built
  /// on asynchronous programming, so we need to wait for
  /// the stream to receive so that the listener can
  /// react appropriately.
  await Future.delayed(const Duration(milliseconds: 10));

  receiver.stopListening();
}
11
likes
160
pub points
61%
popularity

Publisher

unverified uploader

DartMQ is a message-queue system that facilitates communication between different components in the application.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

equatable

More

Packages that depend on dart_mq