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 { Chunk, Deferred, Effect, Option, Queue, Schedule, Stream } from "effect" | |
/** | |
* Creates a stream that processes items from a queue one at a time, and new events | |
* are only pulled from the queue when the previous event has been processed by the stream. | |
* | |
* This means that when the stream terminates, anything unprocessed is still in the queue. | |
*/ | |
const make = Effect.fn(function* <T>() { | |
const queue = yield* Queue.unbounded<T>() |
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
<link rel="import" href="../polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |