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
lsapi_phpini /home/shilurss/public_html/php.ini | |
RewriteEngine On | |
RewriteCond %{SERVER_PORT} 80 | |
RewriteRule ^(.*)$ https://xyz.com/$1 [R,L] | |
// suppose the file is located in public_html/abc/index.html | |
now currently, xyz.com/abc/ loads the file |
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
val parentJob = launch { | |
val childJob = launch { | |
var count = 1 | |
while (count <= 5) { | |
println("Count: $count") | |
delay(100) | |
count++ | |
} | |
} | |
} |
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
val parentJob = launch { | |
val childJob = launch { | |
var count = 1 | |
val startTime = System.currentTimeMillis() | |
var nextPrintTime = startTime | |
while (count <= 5) { | |
if (System.currentTimeMillis() >= nextPrintTime) { | |
println("Count: $count") | |
nextPrintTime += 100L | |
count++ |
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
val parallelJob = launch { | |
delay(1000) | |
} | |
val parentJob = launch { | |
val childJob = launch(parallelJob) { // Notice how the context is explicitly provided | |
var count = 1 | |
while (count <= 5) { | |
println("Count: $count") | |
delay(100) |