lock 0.1.0 copy "lock: ^0.1.0" to clipboard
lock: ^0.1.0 copied to clipboard

outdatedDart 1 only

A sample application

example/example.dart

// Copyright (c) 2014, the Clean project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import 'package:lock/lock.dart';

import 'dart:async';

void main() {
  runWithLock("example.lock", () {
    return new Future.delayed(new Duration(seconds: 10), () => print("Done"));
  }).then((_) => print("Exiting"));

}
0
likes
0
points
13
downloads

Documentation

Documentation

Publisher

unverified uploader

Weekly Downloads

A sample application

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

path

More

Packages that depend on lock