Skip to content

Commit 8d62477

Browse files
committed
Make Poll handle stoppable and startable
1 parent a0873e5 commit 8d62477

File tree

1 file changed

+5
-0
lines changed
  • core/src/main/scala/scala/scalanative/loop

1 file changed

+5
-0
lines changed

core/src/main/scala/scala/scalanative/loop/Poll.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ import internals.HandleUtils
2020
uv_poll_stop(ptr)
2121
HandleUtils.close(ptr)
2222
}
23+
24+
def close(): Unit = {
25+
stop()
26+
HandleUtils.close(ptr)
27+
}
2328
}
2429

2530
object Poll {

0 commit comments

Comments
 (0)