Skip to content

Instantly share code, notes, and snippets.

@OLEGSHA
OLEGSHA / SyncStreams.java
Last active June 4, 2020 08:39
An attempt at creating Java Stream that uses synchronization, Collections.synchronized... -style
/*
* DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
* Version 2, December 2004
*
* Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
*
* Everyone is permitted to copy and distribute verbatim or modified
* copies of this license document, and changing it is allowed as long
* as the name is changed.
*