This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.concurrent.*; | |
import java.util.stream.IntStream; | |
/** | |
* @author yuzd | |
* @date 2022/12/1 16:24 | |
*/ | |
public class PoolTest { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asyncStreamsTest = new AsyncStreamTest(); | |
asyncStreamsTest.ItemsUpdatedEvent += ItemsUpdatedEventhandler; | |
void ItemsUpdatedEventhandler(object sender, ItemsUpdatedEventArgs e) | |
{ | |
($"Thread:{Thread.CurrentThread.ManagedThreadId}->" + e.Item).Dump(); | |
} |