Skip to content

Commit e8e9f26

Browse files
Added AsyncSequenceReaderError
1 parent 695dc56 commit e8e9f26

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//
2+
// AsyncSequenceReaderError.swift
3+
// AsyncSequenceReader
4+
//
5+
// Created by Dimitri Bouniol on 2021-11-17.
6+
// Copyright © 2021 Mochi Development, Inc. All rights reserved.
7+
//
8+
9+
/// An Async Sequence Reader Error.
10+
public enum AsyncSequenceReaderError: Error {
11+
/// Not enough elements were available to read (ie. `actual < minimum`)
12+
case insufficientElements(minimum: Int, actual: Int)
13+
}

0 commit comments

Comments
 (0)