Skip to content

Commit

Permalink
Revert superfluous changes
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge authored Oct 29, 2024
1 parent c125e73 commit cef80fe
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@ import java.util.Iterator

import SelectorSystem._

final class SelectorSystem private (selectorProvider: SelectorProvider) extends PollingSystem {
final class SelectorSystem private (provider: SelectorProvider) extends PollingSystem {

type Api = Selector

def close(): Unit = ()

def makeApi(ctx: PollingContext[Poller]): Selector =
new SelectorImpl(ctx, selectorProvider)
new SelectorImpl(ctx, provider)

def makePoller(): Poller = new Poller(selectorProvider.openSelector())
def makePoller(): Poller = new Poller(provider.openSelector())

def closePoller(poller: Poller): Unit =
poller.selector.close()
Expand Down

0 comments on commit cef80fe

Please sign in to comment.