This file contains 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.LinkedList; | |
public class main | |
{ | |
public static void main(String[] args) | |
{ | |
// 1) Create the two integer list | |
LinkedList<Integer> firstList = new LinkedList<>(); | |
firstList.add(1); |
This file contains 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
<?php | |
declare(strict_types=1); | |
require_once 'require/raw-exec.php'; | |
$requestIds = [1,2,3]; | |
$asyncAction = new RawExecutionWithoutWaitingForResult(); |
This file contains 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
<?php | |
declare(strict_types=1); | |
class RawExecutionWithoutWaitingForResult | |
{ | |
public function execute(string $file, int $requestId): void | |
{ | |
\Fiber::suspend(); |
This file contains 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
<?php | |
/** | |
* This is a basic synchronous (blocking) CURL call. | |
*/ | |
declare(strict_types=1); | |
$requestId = $argv[1]; | |
$url = 'http://xxxxx/ping.php?id=' . $requestId; // The target URL uses a sleep to simulate network latency. |
This file contains 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
<?php | |
declare(strict_types=1); | |
namespace App\Service; | |
use Wizaplace\Etl\Etl; | |
use Wizaplace\Etl\Extractors\Aggregator; | |
use Wizaplace\Etl\Extractors\Csv as CsvExtractor; | |
use Wizaplace\Etl\Extractors\Json as JsonExtractor; |
This file contains 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
<?php | |
declare(strict_types=1); | |
namespace App\Service; | |
use Wizaplace\Etl\Etl; | |
use Wizaplace\Etl\Extractors\Csv as CsvExtractor; | |
use Wizaplace\Etl\Transformers\RenameColumns; | |
use Wizaplace\Etl\Loaders\CsvLoader; |