Skip to content

Commit 8ab3ea9

Browse files
committed
merge fixes
1 parent 92f34c9 commit 8ab3ea9

File tree

10 files changed

+36
-82
lines changed

10 files changed

+36
-82
lines changed

.github/labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@
8080
- changed-files:
8181
- any-glob-to-any-file: 'pkgs/oauth2/**'
8282

83+
'package:pool':
84+
- changed-files:
85+
- any-glob-to-any-file: 'pkgs/pool/**'
86+
8387
'package:source_map_stack_trace':
8488
- changed-files:
8589
- any-glob-to-any-file: 'pkgs/source_map_stack_trace/**'

pkgs/pool/.github/workflows/ci.yml renamed to .github/workflows/pool.yaml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,28 @@
1-
name: CI
1+
name: package:pool
22

33
on:
44
# Run on PRs and pushes to the default branch.
55
push:
6-
branches: [ master ]
6+
branches: [ main ]
7+
paths:
8+
- '.github/workflows/pool.yaml'
9+
- 'pkgs/pool/**'
710
pull_request:
8-
branches: [ master ]
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/pool.yaml'
14+
- 'pkgs/pool/**'
915
schedule:
1016
- cron: "0 0 * * 0"
1117

1218
env:
1319
PUB_ENVIRONMENT: bot.github
1420

21+
22+
defaults:
23+
run:
24+
working-directory: pkgs/pool/
25+
1526
jobs:
1627
# Check code formatting and static analysis on a single OS (linux)
1728
# against Dart dev.

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ don't naturally belong to other topic monorepos (like
3333
| [json_rpc_2](pkgs/json_rpc_2/) | Utilities to write a client or server using the JSON-RPC 2.0 spec. | [![package issues](https://img.shields.io/badge/package:json_rpc_2-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Ajson_rpc_2) | [![pub package](https://img.shields.io/pub/v/json_rpc_2.svg)](https://pub.dev/packages/json_rpc_2) |
3434
| [mime](pkgs/mime/) | Utilities for handling media (MIME) types, including determining a type from a file extension and file contents. | [![package issues](https://img.shields.io/badge/package:mime-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Amime) | [![pub package](https://img.shields.io/pub/v/mime.svg)](https://pub.dev/packages/mime) |
3535
| [oauth2](pkgs/oauth2/) | A client library for authenticating with a remote service via OAuth2 on behalf of a user, and making authorized HTTP requests with the user's OAuth2 credentials. | [![package issues](https://img.shields.io/badge/package:oauth2-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aoauth2) | [![pub package](https://img.shields.io/pub/v/oauth2.svg)](https://pub.dev/packages/oauth2) |
36+
| [pool](pkgs/pool/) | Manage a finite pool of resources. Useful for controlling concurrent file system or network requests. | [![package issues](https://img.shields.io/badge/package:pool-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Apool) | [![pub package](https://img.shields.io/pub/v/pool.svg)](https://pub.dev/packages/pool) |
3637
| [source_map_stack_trace](pkgs/source_map_stack_trace/) | A package for applying source maps to stack traces. | [![package issues](https://img.shields.io/badge/package:source_map_stack_trace-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Asource_map_stack_trace) | [![pub package](https://img.shields.io/pub/v/source_map_stack_trace.svg)](https://pub.dev/packages/source_map_stack_trace) |
3738
| [unified_analytics](pkgs/unified_analytics/) | A package for logging analytics for all Dart and Flutter related tooling to Google Analytics. | [![package issues](https://img.shields.io/badge/package:unified_analytics-4774bc)](https://github.com/dart-lang/tools/issues?q=is%3Aissue+is%3Aopen+label%3Apackage%3Aunified_analytics) | [![pub package](https://img.shields.io/pub/v/unified_analytics.svg)](https://pub.dev/packages/unified_analytics) |
3839

pkgs/pool/.github/dependabot.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

pkgs/pool/.github/workflows/no-response.yml

Lines changed: 0 additions & 37 deletions
This file was deleted.

pkgs/pool/.github/workflows/publish.yaml

Lines changed: 0 additions & 17 deletions
This file was deleted.

pkgs/pool/CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
## 1.5.2-wip
1+
## 1.5.2
22

33
* Require Dart 3.4.
4+
* Move to `dart-lang/tools` monorepo.
45

56
## 1.5.1
67

pkgs/pool/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[![Dart CI](https://github.com/dart-lang/pool/actions/workflows/ci.yml/badge.svg)](https://github.com/dart-lang/pool/actions/workflows/ci.yml)
1+
[![Build Status](https://github.com/dart-lang/tools/actions/workflows/pool.yaml/badge.svg)](https://github.com/dart-lang/tools/actions/workflows/pool.yaml)
22
[![pub package](https://img.shields.io/pub/v/pool.svg)](https://pub.dev/packages/pool)
33
[![package publisher](https://img.shields.io/pub/publisher/pool.svg)](https://pub.dev/packages/pool/publisher)
44

pkgs/pool/benchmark/for_each_benchmark.dart

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
2+
// for details. All rights reserved. Use of this source code is governed by a
3+
// BSD-style license that can be found in the LICENSE file.
4+
15
import 'package:pool/pool.dart';
26

37
void main(List<String> args) async {
@@ -19,18 +23,20 @@ void main(List<String> args) async {
1923
lastLog == null ||
2024
now.difference(lastLog!) > const Duration(seconds: 1)) {
2125
lastLog = now;
22-
print([
23-
now.difference(start),
24-
i.toString().padLeft(10),
25-
fastestIteration.toString().padLeft(7),
26-
fastest!.inMicroseconds.toString().padLeft(9)
27-
].join(' '));
26+
print(
27+
[
28+
now.difference(start),
29+
i.toString().padLeft(10),
30+
fastestIteration.toString().padLeft(7),
31+
fastest!.inMicroseconds.toString().padLeft(9),
32+
].join(' '),
33+
);
2834
}
2935
}
3036

3137
print(['Elapsed ', 'Iterations', 'Fastest', 'Time (us)'].join(' '));
3238

33-
for (;; i++) {
39+
for (; ; i++) {
3440
watch.reset();
3541

3642
var sum = await pool

pkgs/pool/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: pool
2-
version: 1.5.2-wip
2+
version: 1.5.2
33
description: >-
44
Manage a finite pool of resources.
55
Useful for controlling concurrent file system or network requests.

0 commit comments

Comments
 (0)