Skip to content

Commit

Permalink
thread safe connection pool (#40)
Browse files Browse the repository at this point in the history
* thread safe connection pool

* coarse grain locking + event loop preference

* use embedded loop for pooling test

* rm atomic + use circular buffer for available

* use gh actions for ci

* add logging

* el preference docs + use while loop for prune

* add delgation test
  • Loading branch information
tanner0101 authored Oct 22, 2019
1 parent b5742bf commit d9fd2be
Show file tree
Hide file tree
Showing 5 changed files with 334 additions and 120 deletions.
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: [tanner0101] # loganwright, joscdk
open_collective: vapor
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: test
on:
- pull_request
jobs:
xenial:
container:
image: swift:5.1-xenial
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: swift test
bionic:
container:
image: swift:5.1-bionic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: swift test
thread:
container:
image: swift:5.1-bionic
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: swift test --sanitize=thread
3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,10 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
.package(url: "https://github.com/apple/swift-log.git", from: "1.0.0"),
],
targets: [
.target(name: "AsyncKit", dependencies: ["NIO"]),
.target(name: "AsyncKit", dependencies: ["Logging", "NIO"]),
.testTarget(name: "AsyncKitTests", dependencies: ["AsyncKit"]),
]
)
Loading

0 comments on commit d9fd2be

Please sign in to comment.