Skip to content

Commit

Permalink
Rename Raises to Errant
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Apr 8, 2024
1 parent 542ea13 commit 85d9f32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/socket.scala
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ object Control:
import Control.*

object Connectable:
given domainSocket(using Raises[StreamError]): Connectable[DomainSocket] with
given domainSocket(using Errant[StreamError]): Connectable[DomainSocket] with
type Output = Bytes
case class Connection(channel: jnc.SocketChannel, in: ji.InputStream, out: ji.OutputStream)

Expand All @@ -96,7 +96,7 @@ object Connectable:

def close(connection: Connection): Unit = connection.channel.close()

given tcpEndpoint(using Online, Raises[StreamError]): Connectable[Endpoint[TcpPort]] with
given tcpEndpoint(using Online, Errant[StreamError]): Connectable[Endpoint[TcpPort]] with
type Output = Bytes
type Connection = jn.Socket

Expand All @@ -112,7 +112,7 @@ object Connectable:

def receive(socket: jn.Socket): LazyList[Bytes] = socket.getInputStream.nn.stream[Bytes]

given tcpPort(using Raises[StreamError]): Connectable[TcpPort] with
given tcpPort(using Errant[StreamError]): Connectable[TcpPort] with
type Output = Bytes
type Connection = jn.Socket

Expand Down Expand Up @@ -182,7 +182,7 @@ enum UdpResponse:
case Reply(data: Bytes)

object Bindable:
given domainSocket(using Raises[StreamError]): Bindable[DomainSocket] with
given domainSocket(using Errant[StreamError]): Bindable[DomainSocket] with
type Binding = jnc.ServerSocketChannel
type Output = Bytes
type Input = Connection
Expand Down Expand Up @@ -211,7 +211,7 @@ object Bindable:
connection.in.close()
connection.out.close()

given tcpPort(using Raises[StreamError]): Bindable[TcpPort] with
given tcpPort(using Errant[StreamError]): Bindable[TcpPort] with
type Binding = jn.ServerSocket
type Output = Bytes
type Input = jn.Socket
Expand Down

0 comments on commit 85d9f32

Please sign in to comment.