sync 0.2.0

  • README.md
  • CHANGELOG.md
  • Installing
  • Versions
  • 78

sync #

A library for managing asynchronous processes inspired by the Go sync package.

Features #

  • Mutex & ReadWriteMutex
  • Semaphore
  • WaitGroup

License #

Unless otherwise mentioned at the top of a file, all code is licensed under the MIT license as found in the LICENSE file.

Changelog #

0.1.0 #

  • Initial version.

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  sync: ^0.2.0

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:


import 'package:sync/sync.dart';
  
Version Uploaded Documentation Archive
0.2.0 Oct 9, 2018 Go to the documentation of sync 0.2.0 Download sync 0.2.0 archive
0.1.0+1 Nov 27, 2016 Go to the documentation of sync 0.1.0+1 Download sync 0.1.0+1 archive
0.1.0 Nov 27, 2016 Go to the documentation of sync 0.1.0 Download sync 0.1.0 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
60
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
90
Overall:
Weighted score of the above. [more]
78
Learn more about scoring.

We analyzed this package on Apr 24, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in primary library package:sync/sync.dart.

Health suggestions

Fix lib/semaphore.dart. (-0.50 points)

Analysis of lib/semaphore.dart reported 1 hint:

line 41 col 9: Use isNotEmpty instead of length

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and sync.dart. Packages with multiple examples should provide example/README.md.

For more information see the pub package layout conventions.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.0.0 <3.0.0
Dev dependencies
test >=0.12.0 <2.0.0