Lines n/a 0 / 0
Functions and Methods n/a 0 / 0
Classes and Traits n/a 0 / 0
Name Lines Functions and Methods CRAP Classes and Traits
1<?php
2
3declare(strict_types=1);
4
5namespace Stewart\Support\Stream;
6
7use Closure;
8use Stewart\Contracts\Subscription;
9
10/**
11 * @internal
12 * @template T
13 */
14interface StreamSource
15{
16    /** @param Closure(T): void $downstream */
17    public function attach(SubscriptionScope $scope, Closure $downstream): Subscription;
18}