mirror of
https://github.com/ParkerTenBroeck/ParkerTenBroeck.github.io.git
synced 2026-06-06 21:14:06 -04:00
change how website is organized
This commit is contained in:
parent
58c56b0af7
commit
6c8e98dc98
38 changed files with 59 additions and 60 deletions
|
|
@ -1,28 +0,0 @@
|
|||
+++
|
||||
title = "Generators"
|
||||
description = "A java 24 library that adds stackless coroutines to standard java code by transforming method bytecode into state machines at load time"
|
||||
date = 2025-05-07
|
||||
|
||||
[taxonomies]
|
||||
tags = ["java", "bytecode"]
|
||||
category = ["project"]
|
||||
+++
|
||||
|
||||
[!WARN]
|
||||
meow
|
||||
|
||||
```java
|
||||
public static Future<Void, IOException> echo(@Cancellation("close") Socket socket) throws IOException {
|
||||
try(socket){
|
||||
var buffer = ByteBuffer.allocate(4096*2);
|
||||
while(true){
|
||||
bytes_received = socket.read(buffer).await() + bytes_received;
|
||||
buffer.flip();
|
||||
bytes_sent = socket.write_all(buffer).await() + bytes_sent;
|
||||
buffer.clear().limit(buffer.capacity());
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
https://github.com/ParkerTenBroeck/generators
|
||||
Loading…
Add table
Add a link
Reference in a new issue