import * as O from "../../Option"
import { effectAsyncMaybe } from "./effectAsyncMaybe"
/**
 * Creates a stream from an asynchronous callback that can be called multiple times.
 * The optionality of the error type `E` can be used to signal the end of the stream,
 * by setting it to `None`.
 */

export function effectAsync(register, outputBuffer = 16) {
  return effectAsyncMaybe((cb) => {
    register(cb)
    return O.none
  }, outputBuffer)
}
//# sourceMappingURL=effectAsync.js.map
