Skip to content

Instantly share code, notes, and snippets.

View hhhello0507's full-sized avatar
💭
🗡️

이강현 hhhello0507

💭
🗡️
  • Daegu, South Korea
View GitHub Profile
@sebmarkbage
sebmarkbage / Infrastructure.js
Last active February 26, 2025 13:57
SynchronousAsync.js
let cache = new Map();
let pending = new Map();
function fetchTextSync(url) {
if (cache.has(url)) {
return cache.get(url);
}
if (pending.has(url)) {
throw pending.get(url);
}