Example Gist as exercise.
This is the description, and THIS FILE IS MANDATORY.
You can include your markdown description here.
# This is a proof of concept of a wait function that preserves | |
# the order of the futures. | |
# | |
# I'm working on a library on top of concurrent.futures | |
# and I needed a `wait` function that would preserve the order of the futures passed | |
# so I wrote a simple `wait_in_order` function. | |
# Using this also makes `ThreadPoolExecutor.map`'s implemenation simpler | |
import time | |
from functools import partialmethod | |
from http.server import BaseHTTPRequestHandler, HTTPServer | |
import utils | |
class Request: | |
def __init__(self, method, path, headers, stream): | |
self.path = path | |
self.method = method.upper() |
import re | |
import mimetypes | |
from pathlib import Path | |
import requests | |
import boto3 | |
from botocore.exceptions import ClientError | |
{ | |
"a": 4, | |
"b": 5 | |
} |
{ | |
"a": 4, | |
"b": 5, | |
} |
Example Gist as exercise.
This is the description, and THIS FILE IS MANDATORY.
You can include your markdown description here.