Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WinterTC55/iter-streams
/ generateChunks
Function
generateChunks
samples/01-basic-creation.ts:46–50 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
44
// From a generator function
45
{
46
function
* generateChunks() {
47
yield
'generated'
;
48
yield
' '
;
49
yield
'chunks'
;
50
}
51
const
text =
await
Stream.text(Stream.from(generateChunks()));
52
console.log(
'From generator:'
, text);
53
}
Callers
1
main
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected