threading 0.0.3 copy "threading: ^0.0.3" to clipboard
threading: ^0.0.3 copied to clipboard

discontinued
outdatedDart 1 only

Threading is an implementation of the cooperative, non-preemptive multitasking (software threads). Also can be used in conjunction with any third-party libraries for parallel computations (for the coo [...]

example/example.dart

library threading.example.example;

import "dart:async";

import 'example_thread_interrupt_1.dart' as example_thread_interrupt_1;
import 'example_thread_interrupt_2.dart' as example_thread_interrupt_2;
import 'example_thread_join_1.dart' as example_thread_join_1;
import 'example_thread_join_2.dart' as example_thread_join_2;
import 'example_thread_timer_1.dart' as example_thread_timer_1;
import 'example_producer_consumer_problem.dart' as example_producer_consumer_problem;

Future main() async {
  await runExample("Example: Thread Interrupt 1", example_thread_interrupt_1.main);
  await runExample("Example: Thread Interrupt 2", example_thread_interrupt_2.main);
  await runExample("Example: Thread Join 1", example_thread_join_1.main);
  await runExample("Example: Thread Join 2", example_thread_join_2.main);
  await runExample("Example: Thread Timer 1", example_thread_timer_1.main);
  await runExample("Example: Producer-consumer problem", example_producer_consumer_problem.main);
}

Future runExample(String name, Future example()) async {
  print("================");
  print(name);
  print("================");
  await example();
}
11
likes
0
pub points
69%
popularity

Publisher

unverified uploader

Threading is an implementation of the cooperative, non-preemptive multitasking (software threads). Also can be used in conjunction with any third-party libraries for parallel computations (for the coordination and synchronization).

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

More

Packages that depend on threading