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
async function run(elements) { | |
// ============ | |
// your code here starts here | |
// We will insert at arbitrary indices in order to preserve result order | |
const results = Array.from({ length: TOTAL }); | |
const requestPool = []; | |
let processed = 0; | |
for (const element of elements) { | |
const poolSize = requestPool.length; | |
if (poolSize >= MAX_INFLIGHT || processed >= TOTAL - MAX_INFLIGHT) { |
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="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#core_header_panel { | |
border: 1px solid; | |
opacity: 0.7; | |
} |