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
fun f() { | |
var x = 0 | |
g(x) | |
// I need x to be 1 at this point | |
} | |
fun g(x : Int) { | |
x = 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
async def f(): | |
print 'hello' | |
def main(argv): | |
#Suppose this variable is determined at runtime somehow | |
number_of_coroutines = 4 | |
wait asyncio.gather(f, for i in range(4)) | |
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
FROM confluentinc/cp-kafkacat | |
CMD kafkacat -b localhost:9092 -t <my_topic> -T -P -l /tmp/msgs <=== WHAT DO I DO WITH ALL THOSE FLAGS AND THEIR PARAMETERS |
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
FROM confluentinc/cp-kafkacat | |
CMD kafkacat -b localhost:9092 -t <my_topic> -T -P -l /tmp/msgs <=== WHAT DO I DO WITH ALL THOSE FLAGS AND THEIR PARAMETERS |