Archived
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 { serve, ServeInit } from "https://deno.land/std@0.171.0/http/server.ts"; | |
| export type PathParams = Record<string, string> | undefined; | |
| export type CallbackHandler<T> = ( | |
| request: Request, | |
| params: PathParams, | |
| ctx: T | |
| ) => Promise<Response>; |
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
| export default class Component extends React.Component { | |
| componentDidMount(){ | |
| this.requests = []; | |
| this.requests.push(this.props.dispatch(fetchItem(startDate, endDate))); | |
| } | |
| componentWillUnmount() { | |
| this.requests.forEach(request => request.abort()); | |
| } | |
| } |
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
| package aa.race; | |
| import java.io.BufferedWriter; | |
| import java.io.FileWriter; | |
| import java.io.PrintWriter; | |
| import java.math.BigInteger; | |
| import java.util.concurrent.locks.Lock; | |
| import java.util.concurrent.locks.ReentrantLock; | |
| /** |
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
| package aa.race; | |
| import java.util.Random; | |
| import java.util.concurrent.locks.*; | |
| /** | |
| * Created by kevinsteppe on 2/10/15. | |
| */ | |
| public class ThreadDemoExc | |
| { | |
| public static final int numLoops = 8; |
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
| package aa.race; | |
| import java.util.concurrent.locks.Lock; | |
| import java.util.concurrent.locks.ReentrantLock; | |
| /** | |
| * Created by kevinsteppe on 2/10/15. | |
| */ | |
| public class ThreadDemoSOP | |
| { | |
| public static final int numLoops = 8; |
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 java.util.*; | |
| import java.io.*; | |
| import java.text.*; | |
| import java.lang.*; | |
| import aa.*; | |
| public class CalculateAnimalToys { | |
| ///////////////////////////////////////////////////////// | |
| // |
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
| //package aa; | |
| import java.util.*; | |
| import java.util.concurrent.*; | |
| /** | |
| * Created by chrisboesch on 15/9/15. | |
| */ | |
| public class CallAllSuperWorkers | |
| { |